Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ def restart_space():
|
|
199 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
200 |
|
201 |
scheduler = BackgroundScheduler()
|
202 |
-
scheduler.add_job(restart_space, "interval", seconds=60 *
|
203 |
scheduler.start()
|
204 |
|
205 |
demo.launch()
|
|
|
199 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
200 |
|
201 |
scheduler = BackgroundScheduler()
|
202 |
+
scheduler.add_job(restart_space, "interval", seconds=60 * 5) # restart every 5 minutes
|
203 |
scheduler.start()
|
204 |
|
205 |
demo.launch()
|