ysharma HF staff commited on
Commit
7849cce
1 Parent(s): e3ea0a6

update button name

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- regenerate_button.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
- delete_turn_button.click(delete_last_turn, [chatbot, history], [chatbot, history])
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()