Spaces:
Running
Running
johnslegers
commited on
Commit
•
3a32be1
1
Parent(s):
272c785
test
Browse files- modules/app.py +4 -4
modules/app.py
CHANGED
@@ -79,10 +79,10 @@ async def ping():
|
|
79 |
|
80 |
try:
|
81 |
if model_loaded:
|
82 |
-
return {'
|
83 |
|
84 |
-
if model_is_loading:
|
85 |
-
|
86 |
|
87 |
model_is_loading = True
|
88 |
|
@@ -93,7 +93,7 @@ async def ping():
|
|
93 |
model_loaded = True
|
94 |
model_is_loading = False
|
95 |
|
96 |
-
return {'
|
97 |
except Exception as e:
|
98 |
model_is_loading = False
|
99 |
print(traceback.format_exc())
|
|
|
79 |
|
80 |
try:
|
81 |
if model_loaded:
|
82 |
+
return {'OK1'}
|
83 |
|
84 |
+
#if model_is_loading:
|
85 |
+
# return {'ERROR'}
|
86 |
|
87 |
model_is_loading = True
|
88 |
|
|
|
93 |
model_loaded = True
|
94 |
model_is_loading = False
|
95 |
|
96 |
+
return {'OK2'}
|
97 |
except Exception as e:
|
98 |
model_is_loading = False
|
99 |
print(traceback.format_exc())
|