Spaces:
Runtime error
Runtime error
Commit
•
b7f800d
1
Parent(s):
fc13ad2
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ api = HfApi()
|
|
8 |
repo_ids = ["HuggingFaceH4/idefics2-8b-playground", "HuggingFaceH4/idefics2-8b-vdpoed-playground"]
|
9 |
|
10 |
for repo_id in repo_ids:
|
11 |
-
if api.space_info(repo_id).runtime.stage != "RUNNING":
|
12 |
-
|
13 |
|
14 |
for repo_id in repo_ids:
|
15 |
if api.space_info(repo_id).runtime.stage != "RUNNING":
|
|
|
8 |
repo_ids = ["HuggingFaceH4/idefics2-8b-playground", "HuggingFaceH4/idefics2-8b-vdpoed-playground"]
|
9 |
|
10 |
for repo_id in repo_ids:
|
11 |
+
if api.space_info(repo_id).runtime.stage != "RUNNING":
|
12 |
+
api.restart_space(repo_id="HuggingFaceH4/idefics2-8b-playground")
|
13 |
|
14 |
for repo_id in repo_ids:
|
15 |
if api.space_info(repo_id).runtime.stage != "RUNNING":
|