Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
hanhainebula
commited on
Commit
•
dd592d8
1
Parent(s):
b2b6008
update app.py
Browse files
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 |
-
|
501 |
-
scheduler
|
502 |
-
scheduler.
|
503 |
-
|
|
|
|
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()
|