MaryamKarimi080 commited on
Commit
40bcbb1
Β·
verified Β·
1 Parent(s): 2ee3353

Update app.py

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