Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,13 +187,15 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
| 187 |
msg_input.submit(
|
| 188 |
user_interaction,
|
| 189 |
inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
|
| 190 |
-
outputs=[chatbot_output, history_state, msg_input, gr.HTML()]
|
|
|
|
| 191 |
)
|
| 192 |
|
| 193 |
send_btn.click(
|
| 194 |
user_interaction,
|
| 195 |
inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
|
| 196 |
-
outputs=[chatbot_output, history_state, msg_input, gr.HTML()]
|
|
|
|
| 197 |
)
|
| 198 |
|
| 199 |
regen_btn.click(clear_history,
|
|
|
|
| 187 |
msg_input.submit(
|
| 188 |
user_interaction,
|
| 189 |
inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
|
| 190 |
+
outputs=[chatbot_output, history_state, msg_input, gr.HTML()],
|
| 191 |
+
scroll_to_output=True
|
| 192 |
)
|
| 193 |
|
| 194 |
send_btn.click(
|
| 195 |
user_interaction,
|
| 196 |
inputs=[msg_input, history_state, api_key_input, max_tokens, top_p, temperature],
|
| 197 |
+
outputs=[chatbot_output, history_state, msg_input, gr.HTML()],
|
| 198 |
+
scroll_to_output=True
|
| 199 |
)
|
| 200 |
|
| 201 |
regen_btn.click(clear_history,
|