Update app.py
Browse files
app.py
CHANGED
@@ -184,11 +184,17 @@ submit_button.click(
|
|
184 |
],
|
185 |
submission_result,
|
186 |
)
|
|
|
187 |
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
|
|
|
|
|
|
|
|
|
|
194 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
184 |
],
|
185 |
submission_result,
|
186 |
)
|
187 |
+
# ... (your existing code)
|
188 |
|
189 |
+
with demo:
|
190 |
+
gr.HTML(TITLE)
|
191 |
+
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
192 |
+
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
193 |
+
# ... (your tabs content)
|
194 |
+
# ... (your submission form)
|
195 |
+
|
196 |
+
start_button = gr.Button("Start", elem_id="start_button") # Remove the extra indentation
|
197 |
+
scheduler = BackgroundScheduler()
|
198 |
+
scheduler.add_job(restart_space, "interval", seconds=1800)
|
199 |
+
scheduler.start()
|
200 |
demo.queue(default_concurrency_limit=40).launch()
|