alanwnl commited on
Commit
4d493b4
·
1 Parent(s): 088b84b

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -236,15 +236,15 @@ with gr.Blocks() as demo:
236
  with gr.Group():
237
  chatbot = gr.Chatbot()
238
  question = gr.Textbox()
239
- clear = gr.ClearButton([msg, chatbot])
240
 
241
- msg.submit(
242
  chatbot_respond,
243
  inputs=[
244
  question, chatbot, url, file, openAI_key, openAI_base,
245
  openAI_API_version
246
  ],
247
- outputs=[msg, chatbot],
248
  )
249
 
250
  demo.launch()
 
236
  with gr.Group():
237
  chatbot = gr.Chatbot()
238
  question = gr.Textbox()
239
+ clear = gr.ClearButton([question, chatbot])
240
 
241
+ question.submit(
242
  chatbot_respond,
243
  inputs=[
244
  question, chatbot, url, file, openAI_key, openAI_base,
245
  openAI_API_version
246
  ],
247
+ outputs=[question, chatbot],
248
  )
249
 
250
  demo.launch()