reach-vb HF staff commited on
Commit
b31944c
1 Parent(s): b4aa4f8
Files changed (1) hide show
  1. app.py +2 -2
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=86400)
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