zelk12 commited on
Commit
5254f82
·
verified ·
1 Parent(s): 801a1fb

Update app.py

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