Pclanglais commited on
Commit
7f1183e
1 Parent(s): d9bfa30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -187,13 +187,14 @@ with gr.Blocks() as demo:
187
 
188
  history = gr.State()
189
 
190
- msg.submit(user, inputs=[msg, chatbot], outputs=[msg, chatbot, user_output], queue=False).then(
 
 
 
191
  predict, chatbot, chatbot
192
  )
193
 
194
- clear.click(lambda: None, None, chatbot, queue=False)
195
- with gr.Column(scale=1):
196
- user_output = gr.HTML() # To display the user's message
197
 
198
 
199
  demo.queue()
 
187
 
188
  history = gr.State()
189
 
190
+ with gr.Column(scale=1):
191
+ user_output = gr.HTML() # To display the user's message
192
+
193
+ msg.submit(user, inputs=[msg, chatbot], outputs=[msg, chatbot, user_output], queue=False).then(
194
  predict, chatbot, chatbot
195
  )
196
 
197
+ clear.click(lambda: None, None, chatbot, queue=False)
 
 
198
 
199
 
200
  demo.queue()