terryyz commited on
Commit
4fd1283
·
verified ·
1 Parent(s): 9a9fd78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -276,7 +276,7 @@ preload_gt()
276
  # run_gradio()
277
 
278
  scheduler = BackgroundScheduler()
279
- scheduler.add_job(restart_space, "interval", hours=0.01) # Restart every 1h
280
  logging.info("Scheduler initialized to restart space every 1 hour.")
281
  scheduler.start()
282
  interface.launch(show_error=True)
 
276
  # run_gradio()
277
 
278
  scheduler = BackgroundScheduler()
279
+ scheduler.add_job(restart_space, "interval", hours=2) # Restart every 1h
280
  logging.info("Scheduler initialized to restart space every 1 hour.")
281
  scheduler.start()
282
  interface.launch(show_error=True)