Spaces:
Runtime error
Runtime error
huolongguo10
commited on
Commit
β’
ab40822
1
Parent(s):
4d9c77c
Update app.py
Browse files
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 |
|