Spaces:
Sleeping
Sleeping
Separating into "front end", from the backend at https://huggingface.co/spaces/Bias-Leaderboard/leaderboard-backend
Browse files
app.py
CHANGED
@@ -376,7 +376,8 @@ with demo:
|
|
376 |
)
|
377 |
|
378 |
scheduler = BackgroundScheduler()
|
379 |
-
scheduler.add_job(restart_space, "interval", seconds=
|
380 |
-
scheduler.add_job(
|
381 |
scheduler.start()
|
|
|
382 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
376 |
)
|
377 |
|
378 |
scheduler = BackgroundScheduler()
|
379 |
+
scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
380 |
+
# scheduler.add_job(update_dynamic_files, "cron", minute=30) # launched every hour on the hour
|
381 |
scheduler.start()
|
382 |
+
|
383 |
demo.queue(default_concurrency_limit=40).launch()
|