RomZay commited on
Commit
81d4e26
·
verified ·
1 Parent(s): d98fb67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -181,8 +181,8 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
181
  inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
182
  outputs=[chatbot_output, history_state, msg_input, last_message_state])
183
 
184
- regen_btn.click(regenerate_response,
185
- inputs=[history_state, last_message_state, max_tokens, top_p, temperature],
186
  outputs=[chatbot_output, history_state])
187
 
188
  def authorize_and_proceed(user, api_key):
 
181
  inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
182
  outputs=[chatbot_output, history_state, msg_input, last_message_state])
183
 
184
+ regen_btn.click(clear_history,
185
+ inputs=[api_key_input],
186
  outputs=[chatbot_output, history_state])
187
 
188
  def authorize_and_proceed(user, api_key):