Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ with gr.Blocks(css="#chatbot{height:300px} .overflow-y-auto{height:500px}") as r
|
|
| 60 |
txt = gr.Textbox(show_label=False, placeholder="请输入你的问题").style(container=False)
|
| 61 |
submit_btn = gr.Button("提交")
|
| 62 |
txt.submit(answer, [txt, state], [chatbot, state])
|
| 63 |
-
txt.submit(
|
| 64 |
submit_btn.click(answer, [txt, state], [chatbot, state])
|
| 65 |
submit_btn.click(reset_user_input, [], [txt])
|
| 66 |
# clear = gr.ClearButton([txt, chatbot])
|
|
|
|
| 60 |
txt = gr.Textbox(show_label=False, placeholder="请输入你的问题").style(container=False)
|
| 61 |
submit_btn = gr.Button("提交")
|
| 62 |
txt.submit(answer, [txt, state], [chatbot, state])
|
| 63 |
+
txt.submit(reset_user_input, [], [txt])
|
| 64 |
submit_btn.click(answer, [txt, state], [chatbot, state])
|
| 65 |
submit_btn.click(reset_user_input, [], [txt])
|
| 66 |
# clear = gr.ClearButton([txt, chatbot])
|