Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -31,9 +31,10 @@ times_env = os.getenv("RESTART_TIMES")
|
|
| 31 |
REPOS = [t.strip() for t in repos_env.split(",")]
|
| 32 |
RESTART_TIMES = [t.strip() for t in times_env.split(",")]
|
| 33 |
HELPER = "lainlives/starter"
|
| 34 |
-
|
| 35 |
# Global variable to track the specific target timestamp
|
| 36 |
next_reboot_datetime = None
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
def get_next_scheduled_time():
|
|
|
|
| 31 |
REPOS = [t.strip() for t in repos_env.split(",")]
|
| 32 |
RESTART_TIMES = [t.strip() for t in times_env.split(",")]
|
| 33 |
HELPER = "lainlives/starter"
|
| 34 |
+
SELF_TIME = "00:30"
|
| 35 |
# Global variable to track the specific target timestamp
|
| 36 |
next_reboot_datetime = None
|
| 37 |
+
HELPER_TIME = datetime.strptime(SELF_TIME, "%H:%M")
|
| 38 |
|
| 39 |
|
| 40 |
def get_next_scheduled_time():
|