Antoine245 commited on
Commit
29d71e9
·
1 Parent(s): 40d0458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ chat_history = ['']
27
 
28
 
29
  with gr.Blocks() as demo:
30
- chatbot = gr.Chatbot()
31
  msg = gr.Textbox()
32
  clear = gr.ClearButton([msg, chatbot])
33
 
@@ -43,6 +43,6 @@ with gr.Blocks() as demo:
43
  time.sleep(2)
44
  return "", chat_history
45
 
46
- msg.submit(respond,[msg,chatbot],[msg,chatbot],queue=False)
47
 
48
  demo.launch()
 
27
 
28
 
29
  with gr.Blocks() as demo:
30
+ chatbot = gr.Chatbot(value=[], elem_id="chatbot").style(height=650)
31
  msg = gr.Textbox()
32
  clear = gr.ClearButton([msg, chatbot])
33
 
 
43
  time.sleep(2)
44
  return "", chat_history
45
 
46
+ msg.submit(respond,[msg,chatbot],[msg,chatbot])
47
 
48
  demo.launch()