Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, [], [
|
| 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)
|