Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -490,14 +490,14 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
490 |
fn=add_text, inputs=[chatbot, user_input], outputs=[chatbot, user_input], show_progress=True
|
491 |
)
|
492 |
|
493 |
-
predict_event1 = user_input.submit(add_text, [chatbot, user_input], [chatbot, user_input], queue=False,).then(**predict_args)
|
494 |
predict_event3 = btn.upload(add_file, [chatbot, btn, user_input], [chatbot, user_input],queue=False,).then(**predict_args)
|
495 |
predict_event2 = submitBtn.click(**transfer_input_args,queue=False,).then(**predict_args)
|
496 |
|
497 |
cancelBtn.click(
|
498 |
cancel_outputing, [], [status_display],
|
499 |
cancels=[
|
500 |
-
|
501 |
]
|
502 |
)
|
503 |
demo.title = "LI-ChatBot"
|
|
|
490 |
fn=add_text, inputs=[chatbot, user_input], outputs=[chatbot, user_input], show_progress=True
|
491 |
)
|
492 |
|
493 |
+
#predict_event1 = user_input.submit(add_text, [chatbot, user_input], [chatbot, user_input], queue=False,).then(**predict_args)
|
494 |
predict_event3 = btn.upload(add_file, [chatbot, btn, user_input], [chatbot, user_input],queue=False,).then(**predict_args)
|
495 |
predict_event2 = submitBtn.click(**transfer_input_args,queue=False,).then(**predict_args)
|
496 |
|
497 |
cancelBtn.click(
|
498 |
cancel_outputing, [], [status_display],
|
499 |
cancels=[
|
500 |
+
predict_event2, predict_event3 #predict_event1,
|
501 |
]
|
502 |
)
|
503 |
demo.title = "LI-ChatBot"
|