alexkueck commited on
Commit
38332fb
1 Parent(s): 6d807e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -554,12 +554,9 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
554
  transfer_input_args = dict(
555
  fn=add_text, inputs=[ chatbot, user_input, upload], outputs=[chatbot, user_input], show_progress=True
556
  )
557
- transfer_input_args_file = dict(
558
- fn=add_file, inputs=[chatbot, btn, user_input], outputs=[chatbot, user_question, user_input], show_progress=True
559
- )
560
 
561
- predict_event1 = user_input.submit(**transfer_input_args_text, queue=False,).then(**predict_args)
562
- predict_event2 = submitBtn.click(**transfer_input_args_text, queue=False,).then(**predict_args)
563
  predict_event3 = upload.upload(file_anzeigen, [ upload], [file_display] ) #.then(**predict_args)
564
 
565
  cancelBtn.click(
 
554
  transfer_input_args = dict(
555
  fn=add_text, inputs=[ chatbot, user_input, upload], outputs=[chatbot, user_input], show_progress=True
556
  )
 
 
 
557
 
558
+ predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)
559
+ predict_event2 = submitBtn.click(**transfer_input_args, queue=False,).then(**predict_args)
560
  predict_event3 = upload.upload(file_anzeigen, [ upload], [file_display] ) #.then(**predict_args)
561
 
562
  cancelBtn.click(