Spaces:
BAAI
/
Running on L40S

ryanzhangfan multimodalart HF staff commited on
Commit
dc50619
1 Parent(s): b389a18

No queue for clear actions (#2)

Browse files

- No queue for clear actions (706ce50ef033dee3a28e3296f01ac848adea8039)


Co-authored-by: Apolinário from multimodal AI art <[email protected]>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -234,11 +234,11 @@ with gr.Blocks() as demo:
234
  chat,
235
  inputs=[state, user_input, user_image],
236
  outputs=[chatbot, state, user_image],
237
- ).then(fn=clear_input, inputs=[], outputs=user_input)
238
  user_input.submit(
239
  chat,
240
  inputs=[state, user_input, user_image],
241
  outputs=[chatbot, state, user_image],
242
- ).then(fn=clear_input, inputs=[], outputs=user_input)
243
 
244
  demo.launch(max_threads=1).queue()
 
234
  chat,
235
  inputs=[state, user_input, user_image],
236
  outputs=[chatbot, state, user_image],
237
+ ).then(fn=clear_input, inputs=[], outputs=user_input, queue=False)
238
  user_input.submit(
239
  chat,
240
  inputs=[state, user_input, user_image],
241
  outputs=[chatbot, state, user_image],
242
+ ).then(fn=clear_input, inputs=[], outputs=user_input, queue=False)
243
 
244
  demo.launch(max_threads=1).queue()