We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f76a7 commit 53eab8aCopy full SHA for 53eab8a
deepaas/api/v2/__init__.py
@@ -28,14 +28,13 @@
28
CONF = cfg.CONF
29
LOG = log.getLogger("deepaas.api.v2")
30
31
-# XXX
+# NOTE(aloga): singleton pattern for the FastAPI app
32
APP = None
33
34
35
def get_app():
36
global APP
37
38
- # FIXME(aloga): check we cat get rid of global variables
39
APP = fastapi.APIRouter()
40
41
v2_debug.setup_debug()
deepaas/model/__init__.py
@@ -16,7 +16,7 @@
16
17
from deepaas.model import v2
18
19
-# FIXME(aloga): this is extremely ugly
+# NOTE(aloga): Singleton pattern to hold the loaded model and its name
20
V2_MODEL = None
21
V2_MODEL_NAME = None
22
0 commit comments