huolongguo10 commited on
Commit
ab40822
β€’
1 Parent(s): 4d9c77c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ with block as demo_1:
158
  clear = gr.Button('🧹 清陀发送摆 | Clear Input')
159
  send = gr.Button("πŸš€ 发送 | Send")
160
 
161
- send.click(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state])
162
  clear.click(lambda: None, None, message, queue=False)
163
  clear_history.click(fn=clear_session , inputs=[], outputs=[chatbot, state], queue=False)
164
 
 
158
  clear = gr.Button('🧹 清陀发送摆 | Clear Input')
159
  send = gr.Button("πŸš€ 发送 | Send")
160
 
161
+ send.click(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state],api_name='send')
162
  clear.click(lambda: None, None, message, queue=False)
163
  clear_history.click(fn=clear_session , inputs=[], outputs=[chatbot, state], queue=False)
164