Gregor Betz
commited on
Commit
•
dfae691
1
Parent(s):
20eb3f3
sleep
Browse files
app.py
CHANGED
@@ -20,6 +20,9 @@ def restart_space():
|
|
20 |
try:
|
21 |
df_cot_err, df_cot_regimes = load_cot_data()
|
22 |
except Exception:
|
|
|
|
|
|
|
23 |
restart_space()
|
24 |
|
25 |
|
|
|
20 |
try:
|
21 |
df_cot_err, df_cot_regimes = load_cot_data()
|
22 |
except Exception:
|
23 |
+
# sleep for 10 seconds before restarting the space
|
24 |
+
import time
|
25 |
+
time.sleep(10)
|
26 |
restart_space()
|
27 |
|
28 |
|