Spaces:
Running
Running
Update repo URL for restart job (and trigger from-scratch rebuild) (#62)
Browse files- Update repo URL for restart job (and trigger from-scratch rebuild) (1d6ec5540d0799328113e1cc925075fa9cc6925c)
app.py
CHANGED
@@ -176,7 +176,7 @@ with gr.Blocks(css=css) as demo:
|
|
176 |
)
|
177 |
|
178 |
def restart_space():
|
179 |
-
HfApi().restart_space(repo_id="
|
180 |
|
181 |
scheduler = BackgroundScheduler()
|
182 |
scheduler.add_job(restart_space, "interval", seconds=21600)
|
|
|
176 |
)
|
177 |
|
178 |
def restart_space():
|
179 |
+
HfApi().restart_space(repo_id="mlx-community/mlx-my-repo", token=HF_TOKEN, factory_reboot=True)
|
180 |
|
181 |
scheduler = BackgroundScheduler()
|
182 |
scheduler.add_job(restart_space, "interval", seconds=21600)
|