Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def reload_models_task(model_choices):
|
|
66 |
|
67 |
while not SHUTDOWN_EVENT.is_set():
|
68 |
# Wait for 15 minutes (900 seconds)
|
69 |
-
if SHUTDOWN_EVENT.wait(
|
70 |
# If event is set, exit the loop
|
71 |
break
|
72 |
|
|
|
66 |
|
67 |
while not SHUTDOWN_EVENT.is_set():
|
68 |
# Wait for 15 minutes (900 seconds)
|
69 |
+
if SHUTDOWN_EVENT.wait(240):
|
70 |
# If event is set, exit the loop
|
71 |
break
|
72 |
|