Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clémentine
commited on
Commit
•
47aab9d
1
Parent(s):
a6f1b1f
testing hiding the CI for the updater
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ from src.tools.plots import (
|
|
39 |
)
|
40 |
|
41 |
# Start ephemeral Spaces on PRs (see config in README.md)
|
42 |
-
enable_space_ci()
|
43 |
|
44 |
def restart_space():
|
45 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
@@ -459,7 +459,7 @@ with demo:
|
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
462 |
-
scheduler.add_job(update_dynamic_files, "cron", minute=
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
39 |
)
|
40 |
|
41 |
# Start ephemeral Spaces on PRs (see config in README.md)
|
42 |
+
#enable_space_ci()
|
43 |
|
44 |
def restart_space():
|
45 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
|
|
459 |
|
460 |
scheduler = BackgroundScheduler()
|
461 |
scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
462 |
+
scheduler.add_job(update_dynamic_files, "cron", minute=10) # launched every hour on the hour
|
463 |
scheduler.start()
|
464 |
|
465 |
demo.queue(default_concurrency_limit=40).launch()
|