Seraph19 commited on
Commit
95ff898
1 Parent(s): 2fc3b2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -184,11 +184,17 @@ submit_button.click(
184
  ],
185
  submission_result,
186
  )
 
187
 
188
- # ... (Rest of your code)
189
-
190
- start_button = gr.Button("Start", elem_id="start_button")
191
- scheduler = BackgroundScheduler()
192
- scheduler.add_job(restart_space, "interval", seconds=1800)
193
- scheduler.start()
 
 
 
 
 
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()