Update app.py
Browse files
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)
|