Update app.py
Browse files
app.py
CHANGED
@@ -184,6 +184,12 @@ with demo:
|
|
184 |
],
|
185 |
submission_result,
|
186 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
start_button = gr.Button("Start", elem_id="start_button")
|
188 |
scheduler = BackgroundScheduler()
|
189 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
|
|
184 |
],
|
185 |
submission_result,
|
186 |
)
|
187 |
+
import gradio as gr
|
188 |
+
|
189 |
+
def slow_echo(message, history):
|
190 |
+
return message
|
191 |
+
|
192 |
+
demo = gr.ChatInterface(slow_echo).queue()
|
193 |
start_button = gr.Button("Start", elem_id="start_button")
|
194 |
scheduler = BackgroundScheduler()
|
195 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|