Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -299,7 +299,7 @@ with gr.Blocks() as demo:
|
|
299 |
|
300 |
# Chatbot Tab
|
301 |
with gr.Tab("Chatbot"):
|
302 |
-
chatbot_interface = gr.Chatbot()
|
303 |
with gr.Row():
|
304 |
message_input = gr.Textbox(placeholder="Type your message here...")
|
305 |
send_button = gr.Button("Send")
|
@@ -348,4 +348,4 @@ with gr.Blocks() as demo:
|
|
348 |
demo.load(update_feed_content, outputs=feed_content, every=5) # Update every 5 seconds
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
-
demo.launch()
|
|
|
299 |
|
300 |
# Chatbot Tab
|
301 |
with gr.Tab("Chatbot"):
|
302 |
+
chatbot_interface = gr.Chatbot(type='messages')
|
303 |
with gr.Row():
|
304 |
message_input = gr.Textbox(placeholder="Type your message here...")
|
305 |
send_button = gr.Button("Send")
|
|
|
348 |
demo.load(update_feed_content, outputs=feed_content, every=5) # Update every 5 seconds
|
349 |
|
350 |
if __name__ == "__main__":
|
351 |
+
demo.launch(every=5) # Update every 5 seconds
|