Spaces:
Paused
Paused
update button name
Browse files
app.py
CHANGED
@@ -222,13 +222,13 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
222 |
|
223 |
emptyBtn.click(reset_state, outputs=[chatbot, history, past_key_values], show_progress=True)
|
224 |
|
225 |
-
|
226 |
retry_last_answer,
|
227 |
inputs = [user_input, chatbot, max_length, top_p, temperature, history, past_key_values],
|
228 |
#outputs = [chatbot, history, last_user_message, user_message]
|
229 |
outputs=[chatbot, history, past_key_values]
|
230 |
)
|
231 |
-
|
232 |
|
233 |
with gr.Accordion("For Translation API", open=False):
|
234 |
input_text = gr.Text()
|
|
|
222 |
|
223 |
emptyBtn.click(reset_state, outputs=[chatbot, history, past_key_values], show_progress=True)
|
224 |
|
225 |
+
retryBtn.click(
|
226 |
retry_last_answer,
|
227 |
inputs = [user_input, chatbot, max_length, top_p, temperature, history, past_key_values],
|
228 |
#outputs = [chatbot, history, last_user_message, user_message]
|
229 |
outputs=[chatbot, history, past_key_values]
|
230 |
)
|
231 |
+
deleteBtn.click(delete_last_turn, [chatbot, history], [chatbot, history])
|
232 |
|
233 |
with gr.Accordion("For Translation API", open=False):
|
234 |
input_text = gr.Text()
|