hysts HF staff commited on
Commit
3a41fad
1 Parent(s): c95a7bd
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -211,8 +211,7 @@ def filter_models(
211
 
212
  leaderboard_df = filter_models(leaderboard_df, [t.to_str(" : ") for t in ModelType], list(NUMERIC_INTERVALS.keys()), [i.value.name for i in Precision], [i.value.name for i in AddSpecialTokens], [i.value.name for i in NumFewShots], False, False, False)
213
 
214
- demo = gr.Blocks(css=custom_css)
215
- with demo:
216
  gr.HTML(TITLE)
217
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
218
 
@@ -514,7 +513,9 @@ with demo:
514
  )
515
  gr.HTML(BOTTOM_LOGO)
516
 
517
- scheduler = BackgroundScheduler()
518
- scheduler.add_job(restart_space, "interval", seconds=1800)
519
- scheduler.start()
520
- demo.queue(default_concurrency_limit=40).launch()
 
 
 
211
 
212
  leaderboard_df = filter_models(leaderboard_df, [t.to_str(" : ") for t in ModelType], list(NUMERIC_INTERVALS.keys()), [i.value.name for i in Precision], [i.value.name for i in AddSpecialTokens], [i.value.name for i in NumFewShots], False, False, False)
213
 
214
+ with gr.Blocks(css=custom_css) as demo:
 
215
  gr.HTML(TITLE)
216
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
217
 
 
513
  )
514
  gr.HTML(BOTTOM_LOGO)
515
 
516
+
517
+ if __name__ == "__main__":
518
+ scheduler = BackgroundScheduler()
519
+ scheduler.add_job(restart_space, "interval", seconds=1800)
520
+ scheduler.start()
521
+ demo.queue(default_concurrency_limit=40).launch()