qgallouedec HF staff commited on
Commit
0023eb6
·
verified ·
1 Parent(s): c9a2ca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- if api.space_info(repo_id).runtime.stage != "RUNNING":
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")