Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
b6d62ae
1
Parent(s):
cfe43cb
testing schedule
Browse files
app.py
CHANGED
|
@@ -442,13 +442,13 @@ with gr.Blocks() as demo:
|
|
| 442 |
user_stats_btn.click(user_stats, [], output)
|
| 443 |
scheduler = BackgroundScheduler()
|
| 444 |
|
| 445 |
-
if local:
|
| 446 |
-
|
| 447 |
-
else:
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
scheduler.start()
|
| 453 |
demo.queue(max_size=5)
|
| 454 |
demo.launch()
|
|
|
|
| 442 |
user_stats_btn.click(user_stats, [], output)
|
| 443 |
scheduler = BackgroundScheduler()
|
| 444 |
|
| 445 |
+
# if local:
|
| 446 |
+
scheduler.add_job(notify_about_new_models, "interval", minutes=0)
|
| 447 |
+
# else:
|
| 448 |
+
# scheduler.add_job(
|
| 449 |
+
# notify_about_new_models,
|
| 450 |
+
# CronTrigger.from_crontab("0 */12 * * *"),
|
| 451 |
+
# )
|
| 452 |
scheduler.start()
|
| 453 |
demo.queue(max_size=5)
|
| 454 |
demo.launch()
|