Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
eduagarcia
commited on
Commit
•
94177ff
1
Parent(s):
88675db
try to fix some cases of DNS failed
Browse files
app.py
CHANGED
@@ -59,7 +59,10 @@ from src.tools.plots import (
|
|
59 |
#enable_space_ci()
|
60 |
|
61 |
def restart_space():
|
62 |
-
|
|
|
|
|
|
|
63 |
|
64 |
def init_space(full_init: bool = True):
|
65 |
if full_init:
|
|
|
59 |
#enable_space_ci()
|
60 |
|
61 |
def restart_space():
|
62 |
+
try:
|
63 |
+
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
64 |
+
except:
|
65 |
+
print("Restart failed")
|
66 |
|
67 |
def init_space(full_init: bool = True):
|
68 |
if full_init:
|