Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -260,12 +260,12 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
| 260 |
lambda msg: (msg, msg, ""), # Store message and clear input
|
| 261 |
inputs=[input_box],
|
| 262 |
outputs=[msg_store, input_box, input_box],
|
| 263 |
-
queue=
|
| 264 |
).then(
|
| 265 |
user_message, # Add user message to chat
|
| 266 |
inputs=[msg_store, chatbot],
|
| 267 |
outputs=[input_box, chatbot],
|
| 268 |
-
queue=
|
| 269 |
).then(
|
| 270 |
stream_gemini_response, # Generate and stream response
|
| 271 |
inputs=[msg_store, chatbot],
|
|
|
|
| 260 |
lambda msg: (msg, msg, ""), # Store message and clear input
|
| 261 |
inputs=[input_box],
|
| 262 |
outputs=[msg_store, input_box, input_box],
|
| 263 |
+
queue=True
|
| 264 |
).then(
|
| 265 |
user_message, # Add user message to chat
|
| 266 |
inputs=[msg_store, chatbot],
|
| 267 |
outputs=[input_box, chatbot],
|
| 268 |
+
queue=True
|
| 269 |
).then(
|
| 270 |
stream_gemini_response, # Generate and stream response
|
| 271 |
inputs=[msg_store, chatbot],
|