This commit is contained in:
Zhijie Lin 2023-05-25 17:16:04 +08:00
parent ccf3db9207
commit 37596fc265

View File

@ -165,7 +165,8 @@ with gr.Blocks() as demo:
[image, text_input, upload_button, chat_state, emb_list])
text_input.submit(gradio_ask, [text_input, chatbot, chat_state], [text_input, chatbot, chat_state]).then(
image, upload_img, gradio_answer, [chatbot, chat_state, emb_list, num_beams, temperature], [image2, chatbot, chat_state, emb_list]
upload_img, gradio_answer, [image, chatbot, chat_state, emb_list, num_beams, temperature],
[image2, chatbot, chat_state, emb_list]
)
clear.click(gradio_reset, [chat_state, emb_list], [chatbot, image, text_input, upload_button, chat_state, emb_list],
queue=False)