XufengDuan commited on
Commit
8067b48
1 Parent(s): 508b863

update scripts

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -358,10 +358,7 @@ with demo:
358
  show_copy_button=True,
359
  )
360
 
361
- scheduler = BackgroundScheduler()
362
- scheduler.add_job(restart_space, "interval", seconds=1800)
363
- scheduler.start()
364
- demo.queue(default_concurrency_limit=40).launch()
365
  # 在初始化完成后调用
366
  original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = init_space()
367
  process_pending_evals()
@@ -392,3 +389,7 @@ process_pending_evals()
392
  pending_eval_queue_df,
393
  ) = populate.get_evaluation_queue_df(envs.EVAL_REQUESTS_PATH, utils.EVAL_COLS)
394
 
 
 
 
 
 
358
  show_copy_button=True,
359
  )
360
 
361
+
 
 
 
362
  # 在初始化完成后调用
363
  original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = init_space()
364
  process_pending_evals()
 
389
  pending_eval_queue_df,
390
  ) = populate.get_evaluation_queue_df(envs.EVAL_REQUESTS_PATH, utils.EVAL_COLS)
391
 
392
+ scheduler = BackgroundScheduler()
393
+ scheduler.add_job(restart_space, "interval", seconds=1800)
394
+ scheduler.start()
395
+ demo.queue(default_concurrency_limit=40).launch()