Spaces:
Paused
Paused
Deactivate scheduler
Browse files
app.py
CHANGED
|
@@ -26,18 +26,17 @@ from utils import (
|
|
| 26 |
### Initialize scheduler
|
| 27 |
###################
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
print(f"Space restarted on {datetime.now()}")
|
| 35 |
|
| 36 |
|
| 37 |
-
# restart the space every day at 9am
|
| 38 |
-
scheduler = BackgroundScheduler()
|
| 39 |
-
scheduler.add_job(restart_space, "cron", day_of_week="mon-sun", hour=7, minute=0)
|
| 40 |
-
scheduler.start()
|
| 41 |
|
| 42 |
###################
|
| 43 |
### Load Data
|
|
|
|
| 26 |
### Initialize scheduler
|
| 27 |
###################
|
| 28 |
|
| 29 |
+
# def restart_space():
|
| 30 |
+
# HfApi(token=os.getenv("HF_TOKEN", None)).restart_space(
|
| 31 |
+
# repo_id="m-ric/llm-race-to-the-top"
|
| 32 |
+
# )
|
| 33 |
+
# print(f"Space restarted on {datetime.now()}")
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
+
# # restart the space every day at 9am
|
| 37 |
+
# scheduler = BackgroundScheduler()
|
| 38 |
+
# scheduler.add_job(restart_space, "cron", day_of_week="mon-sun", hour=7, minute=0)
|
| 39 |
+
# scheduler.start()
|
| 40 |
|
| 41 |
###################
|
| 42 |
### Load Data
|