zelk12 commited on
Commit
531f5da
·
verified ·
1 Parent(s): 5254f82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=False
264
  ).then(
265
  user_message, # Add user message to chat
266
  inputs=[msg_store, chatbot],
267
  outputs=[input_box, chatbot],
268
- queue=False
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],