Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,10 +70,9 @@ with block:
|
|
| 70 |
with gr.Column():
|
| 71 |
chatbot = gr.Chatbot(label="Chat with Image")
|
| 72 |
message = gr.Textbox(label="User", placeholder=prompt)
|
| 73 |
-
btn_clear = gr.ClearButton([message])
|
| 74 |
state = gr.State()
|
| 75 |
|
| 76 |
upload_button.click(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 77 |
message.submit(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 78 |
-
|
| 79 |
block.launch(share = True)
|
|
|
|
| 70 |
with gr.Column():
|
| 71 |
chatbot = gr.Chatbot(label="Chat with Image")
|
| 72 |
message = gr.Textbox(label="User", placeholder=prompt)
|
|
|
|
| 73 |
state = gr.State()
|
| 74 |
|
| 75 |
upload_button.click(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 76 |
message.submit(message_and_history, inputs=[img_input, message, state, api_input], outputs=[chatbot, state])
|
| 77 |
+
message.submit(lambda: None, None, message, queue=False)
|
| 78 |
block.launch(share = True)
|