Spaces:
Runtime error
Runtime error
Commit
•
f6889a3
1
Parent(s):
a9fec77
Update app.py
Browse files
app.py
CHANGED
@@ -356,7 +356,7 @@ with block:
|
|
356 |
],
|
357 |
)
|
358 |
"""
|
359 |
-
|
360 |
|
361 |
scheduler = BackgroundScheduler()
|
362 |
# Refresh every hour
|
@@ -364,4 +364,6 @@ scheduler = BackgroundScheduler()
|
|
364 |
#scheduler.add_job(download_leaderboard_dataset, 'interval', seconds=3600)
|
365 |
#scheduler.add_job(run_update_dataset, 'interval', seconds=3600)
|
366 |
scheduler.add_job(restart, 'interval', seconds=3600)
|
367 |
-
scheduler.start()
|
|
|
|
|
|
356 |
],
|
357 |
)
|
358 |
"""
|
359 |
+
|
360 |
|
361 |
scheduler = BackgroundScheduler()
|
362 |
# Refresh every hour
|
|
|
364 |
#scheduler.add_job(download_leaderboard_dataset, 'interval', seconds=3600)
|
365 |
#scheduler.add_job(run_update_dataset, 'interval', seconds=3600)
|
366 |
scheduler.add_job(restart, 'interval', seconds=3600)
|
367 |
+
scheduler.start()
|
368 |
+
|
369 |
+
block.launch()
|