Spaces:
Running
on
A10G
Running
on
A10G
Update app.py (#61)
Browse files- Update app.py (b33e06d98b445e7deca94c887cc80712d5cb19db)
app.py
CHANGED
@@ -181,10 +181,10 @@ with gr.Blocks() as demo:
|
|
181 |
iface.render()
|
182 |
|
183 |
def restart_space():
|
184 |
-
HfApi().restart_space(repo_id="ggml-org/gguf-my-repo", token=HF_TOKEN)
|
185 |
|
186 |
scheduler = BackgroundScheduler()
|
187 |
-
scheduler.add_job(restart_space, "interval", seconds=
|
188 |
scheduler.start()
|
189 |
|
190 |
# Launch the interface
|
|
|
181 |
iface.render()
|
182 |
|
183 |
def restart_space():
|
184 |
+
HfApi().restart_space(repo_id="ggml-org/gguf-my-repo", token=HF_TOKEN, factory_reboot=True)
|
185 |
|
186 |
scheduler = BackgroundScheduler()
|
187 |
+
scheduler.add_job(restart_space, "interval", seconds=21600)
|
188 |
scheduler.start()
|
189 |
|
190 |
# Launch the interface
|