Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def chat_fn(message, history):
|
|
48 |
with gr.Blocks() as demo:
|
49 |
gr.Markdown("## π Course Assistant β Chat with your course files")
|
50 |
# chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
|
51 |
-
chatbot = gr.Chatbot(elem_id="chatbot", type="
|
52 |
txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
|
53 |
txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
|
54 |
txt.submit(lambda: None, None, txt) # clear input
|
|
|
48 |
with gr.Blocks() as demo:
|
49 |
gr.Markdown("## π Course Assistant β Chat with your course files")
|
50 |
# chatbot = gr.Chatbot(elem_id="chatbot", type="messages")
|
51 |
+
chatbot = gr.Chatbot(elem_id="chatbot", type="tuples")
|
52 |
txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
|
53 |
txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
|
54 |
txt.submit(lambda: None, None, txt) # clear input
|