Spaces:
Runtime error
Runtime error
Commit
•
706ce50
1
Parent(s):
b389a18
No queue for clear actions
Browse files
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()
|