Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ for repo_id in repo_ids:
|
|
12 |
api.restart_space(repo_id="HuggingFaceH4/idefics2-8b-playground")
|
13 |
|
14 |
for repo_id in repo_ids:
|
15 |
-
|
16 |
time.sleep(1)
|
17 |
|
18 |
client_idefics2 = Client("HuggingFaceH4/idefics2-8b-playground")
|
|
|
12 |
api.restart_space(repo_id="HuggingFaceH4/idefics2-8b-playground")
|
13 |
|
14 |
for repo_id in repo_ids:
|
15 |
+
while api.space_info(repo_id).runtime.stage != "RUNNING":
|
16 |
time.sleep(1)
|
17 |
|
18 |
client_idefics2 = Client("HuggingFaceH4/idefics2-8b-playground")
|