Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def chat_fn(message, history):
|
|
| 32 |
|
| 33 |
with gr.Blocks() as demo:
|
| 34 |
gr.Markdown("## π Course Assistant β Chat with your course files")
|
| 35 |
-
chatbot = gr.Chatbot(elem_id="chatbot")
|
| 36 |
txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
|
| 37 |
txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
|
| 38 |
txt.submit(lambda: None, None, txt) # clear input
|
|
|
|
| 32 |
|
| 33 |
with gr.Blocks() as demo:
|
| 34 |
gr.Markdown("## π Course Assistant β Chat with your course files")
|
| 35 |
+
chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
|
| 36 |
txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
|
| 37 |
txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
|
| 38 |
txt.submit(lambda: None, None, txt) # clear input
|