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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ 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 not in ["RUNNING", "APP_STARTING"]:
12
  api.restart_space(repo_id="HuggingFaceH4/idefics2-8b-playground")
13
 
14
  for repo_id in repo_ids:
 
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 not in ["RUNNING", "APP_STARTING", "RUNNING_APP_STARTING"]:
12
  api.restart_space(repo_id="HuggingFaceH4/idefics2-8b-playground")
13
 
14
  for repo_id in repo_ids: