MaryamKarimi080 commited on
Commit
041e514
Β·
verified Β·
1 Parent(s): 6782a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def chat_fn(message, history):
47
 
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
  txt = gr.Textbox(show_label=False, placeholder="Ask about the course...")
52
  txt.submit(chat_fn, [txt, chatbot], [chatbot, txt])
53
  txt.submit(lambda: None, None, txt) # clear input
 
47
 
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