alexkueck commited on
Commit
37e795b
1 Parent(s): d5c44bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -149,7 +149,7 @@ def add_text(chatbot, history, prompt, file):
149
  chatbot = chatbot +[((file.name,), None), (prompt, None)]
150
  print("chatbot nach add_text............")
151
  print(chatbot)
152
- return chatbot, history, prompt, "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
153
 
154
  def add_text2(chatbot, prompt):
155
  if (prompt == ""):
@@ -774,8 +774,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
774
  )
775
 
776
  # Chatbot
777
- transfer_input_args = dict(
778
- fn=add_text, inputs=[chatbot, history, user_input, attached_file], outputs=[chatbot, history, user_question, user_input], show_progress=True
779
  )
780
 
781
  predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)
 
149
  chatbot = chatbot +[((file.name,), None), (prompt, None)]
150
  print("chatbot nach add_text............")
151
  print(chatbot)
152
+ return chatbot, history, prompt, file, gr.Image(visible = False), "" #gr.Image( label=None, size=(30,30), visible=False, scale=1) #gr.Textbox(value="", interactive=False)
153
 
154
  def add_text2(chatbot, prompt):
155
  if (prompt == ""):
 
774
  )
775
 
776
  # Chatbot
777
+ transfer_input_args = dict(
778
+ fn=add_text, inputs=[chatbot, history, user_input, attached_file], outputs=[chatbot, history, user_question, attached_file, file_display, user_input], show_progress=True
779
  )
780
 
781
  predict_event1 = user_input.submit(**transfer_input_args, queue=False,).then(**predict_args)