Update app.py
Browse files
app.py
CHANGED
@@ -725,11 +725,11 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
725 |
transfer_input_args2 = dict(
|
726 |
fn=add_text2, inputs=[chatbot_bild, user_input2], outputs=[chatbot_bild, user_question2, user_input2], show_progress=True
|
727 |
)
|
728 |
-
predict_event2_1 =
|
729 |
-
predict_event2_2 =
|
730 |
#emptyBtn2.click(clear_all, [], [file_display, image_display])
|
731 |
|
732 |
-
|
733 |
cancels=[predict_event2_1,predict_event2_2 ]
|
734 |
)
|
735 |
|
|
|
725 |
transfer_input_args2 = dict(
|
726 |
fn=add_text2, inputs=[chatbot_bild, user_input2], outputs=[chatbot_bild, user_question2, user_input2], show_progress=True
|
727 |
)
|
728 |
+
predict_event2_1 = user_input2.submit(**transfer_input_args2, queue=False,).then(**predict_args2)
|
729 |
+
predict_event2_2 = submitBtn2.click(**transfer_input_args2, queue=False,).then(**predict_args2)
|
730 |
#emptyBtn2.click(clear_all, [], [file_display, image_display])
|
731 |
|
732 |
+
cancelBtn2.click(
|
733 |
cancels=[predict_event2_1,predict_event2_2 ]
|
734 |
)
|
735 |
|