Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -123,8 +123,8 @@ def chat():
|
|
123 |
)
|
124 |
|
125 |
with gr.Row(elem_id="button_container"):
|
126 |
-
|
127 |
-
|
128 |
with gr.Column(min_width=32):
|
129 |
retry_button = gr.Button("♻️ Retry last turn")
|
130 |
with gr.Column(min_width=32):
|
@@ -225,12 +225,12 @@ def chat():
|
|
225 |
show_progress="minimal",
|
226 |
)
|
227 |
inputs.submit(lambda: "", inputs=None, outputs=inputs)
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
delete_turn_button.click(delete_last_turn, inputs=[chatbot], outputs=[chatbot])
|
235 |
retry_button.click(
|
236 |
run_retry,
|
|
|
123 |
)
|
124 |
|
125 |
with gr.Row(elem_id="button_container"):
|
126 |
+
with gr.Column(min_width=32):
|
127 |
+
submit_button = gr.Button("🚀 Submit")
|
128 |
with gr.Column(min_width=32):
|
129 |
retry_button = gr.Button("♻️ Retry last turn")
|
130 |
with gr.Column(min_width=32):
|
|
|
225 |
show_progress="minimal",
|
226 |
)
|
227 |
inputs.submit(lambda: "", inputs=None, outputs=inputs)
|
228 |
+
submit_button.click(
|
229 |
+
run_chat,
|
230 |
+
[inputs, chatbot, instructions, temperature, top_p],
|
231 |
+
outputs=[chatbot],
|
232 |
+
show_progress="minimal",
|
233 |
+
)
|
234 |
delete_turn_button.click(delete_last_turn, inputs=[chatbot], outputs=[chatbot])
|
235 |
retry_button.click(
|
236 |
run_retry,
|