kanli commited on
Commit
6dbe638
·
1 Parent(s): c752b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as r
61
  submit_btn = gr.Button("提交")
62
  txt.submit(answer, [txt, state], [chatbot, state])
63
  submit_btn.click(answer, [txt, state], [chatbot, state])
64
- submit_btn.click(reset_user_input, [], [user_input])
65
  # clear = gr.ClearButton([txt, chatbot])
66
 
67
  rxbot.launch(share=True)
 
61
  submit_btn = gr.Button("提交")
62
  txt.submit(answer, [txt, state], [chatbot, state])
63
  submit_btn.click(answer, [txt, state], [chatbot, state])
64
+ submit_btn.click(reset_user_input, [], [txt])
65
  # clear = gr.ClearButton([txt, chatbot])
66
 
67
  rxbot.launch(share=True)