MaryamKarimi080 commited on
Commit
629388d
Β·
verified Β·
1 Parent(s): 0ee80e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="tuple")
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