Spaces:
AIR-Bench
/
Running on CPU Upgrade

hanhainebula commited on
Commit
dd592d8
1 Parent(s): b2b6008

update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -497,7 +497,8 @@ with demo:
497
  with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=3):
498
  gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text")
499
 
500
- scheduler = BackgroundScheduler()
501
- scheduler.add_job(restart_space, "interval", seconds=1800)
502
- scheduler.start()
503
- demo.queue(default_concurrency_limit=40).launch()
 
 
497
  with gr.TabItem("📝 About", elem_id="llm-benchmark-tab-table", id=3):
498
  gr.Markdown(BENCHMARKS_TEXT, elem_classes="markdown-text")
499
 
500
+ if __name__ == "__main__":
501
+ scheduler = BackgroundScheduler()
502
+ scheduler.add_job(restart_space, "interval", seconds=1800)
503
+ scheduler.start()
504
+ demo.queue(default_concurrency_limit=40).launch()