Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ async def infer_gradio(prompt: str):
|
|
77 |
continue
|
78 |
if runtime_info.stage in ['SLEEPING', 'PAUSED']:
|
79 |
print(f"{repo} is now SLEEPING or PAUSED.")
|
80 |
-
|
81 |
continue
|
82 |
# Create a CustomClient instance for each repo
|
83 |
client = CustomClient(repo, hf_token=api_key, timeout=300)
|
|
|
77 |
continue
|
78 |
if runtime_info.stage in ['SLEEPING', 'PAUSED']:
|
79 |
print(f"{repo} is now SLEEPING or PAUSED.")
|
80 |
+
api.restart_space(repo_id=repo)
|
81 |
continue
|
82 |
# Create a CustomClient instance for each repo
|
83 |
client = CustomClient(repo, hf_token=api_key, timeout=300)
|