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