Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,9 +57,9 @@ with block as demo:
|
|
| 57 |
state = gr.State()
|
| 58 |
message.submit(chatyuan_bot, inputs=[message, state], outputs=[chatbot, state])
|
| 59 |
with gr.Row():
|
| 60 |
-
clear_history = gr.Button("π
|
| 61 |
-
clear = gr.Button('π§Ή
|
| 62 |
-
send = gr.Button("π
|
| 63 |
|
| 64 |
send.click(chatyuan_bot, inputs=[message, state], outputs=[chatbot, state])
|
| 65 |
clear.click(lambda: None, None, message, queue=False)
|
|
@@ -110,9 +110,9 @@ with block as demo_1:
|
|
| 110 |
state = gr.State()
|
| 111 |
message.submit(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state])
|
| 112 |
with gr.Row():
|
| 113 |
-
clear_history = gr.Button("π
|
| 114 |
-
clear = gr.Button('π§Ή ζΈ
ι€ειζ‘ |Clear Input')
|
| 115 |
-
send = gr.Button("π
|
| 116 |
|
| 117 |
send.click(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state])
|
| 118 |
clear.click(lambda: None, None, message, queue=False)
|
|
|
|
| 57 |
state = gr.State()
|
| 58 |
message.submit(chatyuan_bot, inputs=[message, state], outputs=[chatbot, state])
|
| 59 |
with gr.Row():
|
| 60 |
+
clear_history = gr.Button("π ζΈ
ι€εε²ε―Ήθ― | Clear")
|
| 61 |
+
clear = gr.Button('π§Ή ζΈ
ι€ειζ‘ | Clear Input')
|
| 62 |
+
send = gr.Button("π ει | Send")
|
| 63 |
|
| 64 |
send.click(chatyuan_bot, inputs=[message, state], outputs=[chatbot, state])
|
| 65 |
clear.click(lambda: None, None, message, queue=False)
|
|
|
|
| 110 |
state = gr.State()
|
| 111 |
message.submit(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state])
|
| 112 |
with gr.Row():
|
| 113 |
+
clear_history = gr.Button("π ζΈ
ι€εε²ε―Ήθ― | Clear Context")
|
| 114 |
+
clear = gr.Button('π§Ή ζΈ
ι€ειζ‘ | Clear Input')
|
| 115 |
+
send = gr.Button("π ει | Send")
|
| 116 |
|
| 117 |
send.click(chatyuan_bot_api, inputs=[api_key,message, state], outputs=[chatbot, state])
|
| 118 |
clear.click(lambda: None, None, message, queue=False)
|