Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clean up
Browse files
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 |
-
|
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 |
-
|
518 |
-
|
519 |
-
scheduler
|
520 |
-
|
|
|
|
|
|
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()
|