hsuwill000 commited on
Commit
46685b7
·
verified ·
1 Parent(s): 5e09053

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ async def infer_gradio(prompt: str):
79
  if runtime_info.stage in ['SLEEPING', 'PAUSED']:
80
  print(f"{repo} is now SLEEPING or PAUSED.")
81
  api.restart_space(repo_id=repo)
82
-
83
  # Create a CustomClient instance for each repo
84
  client = CustomClient(repo, hf_token=api_key, timeout=300)
85
  task = infer_single_gradio(client, prompt)
 
79
  if runtime_info.stage in ['SLEEPING', 'PAUSED']:
80
  print(f"{repo} is now SLEEPING or PAUSED.")
81
  api.restart_space(repo_id=repo)
82
+ break
83
  # Create a CustomClient instance for each repo
84
  client = CustomClient(repo, hf_token=api_key, timeout=300)
85
  task = infer_single_gradio(client, prompt)