Spaces:
Build error
Build error
Update app.py
Browse files
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(
|
| 185 |
-
inputs=[
|
| 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):
|