Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -276,12 +276,12 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", n
|
|
276 |
lambda msg: (msg, msg, ""), # Store message and clear input
|
277 |
inputs=[input_box],
|
278 |
outputs=[msg_store, input_box, input_box],
|
279 |
-
queue=
|
280 |
).then(
|
281 |
user_message, # Add user message to chat
|
282 |
inputs=[msg_store, chatbot],
|
283 |
outputs=[input_box, chatbot],
|
284 |
-
queue=
|
285 |
).then(
|
286 |
stream_gemini_response, # Generate and stream response
|
287 |
inputs=[msg_store, chatbot],
|
|
|
276 |
lambda msg: (msg, msg, ""), # Store message and clear input
|
277 |
inputs=[input_box],
|
278 |
outputs=[msg_store, input_box, input_box],
|
279 |
+
queue=True
|
280 |
).then(
|
281 |
user_message, # Add user message to chat
|
282 |
inputs=[msg_store, chatbot],
|
283 |
outputs=[input_box, chatbot],
|
284 |
+
queue=True
|
285 |
).then(
|
286 |
stream_gemini_response, # Generate and stream response
|
287 |
inputs=[msg_store, chatbot],
|