OuroborosM commited on
Commit
39c814c
·
1 Parent(s): 641237a
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -753,14 +753,14 @@ def chathmi4(message, history2):
753
  print("Input Message:", message)
754
  last_request = message
755
  history2 = history2 + [(message, None)]
756
- # yield ["", history2, gr.update(visible = False), gr.update(visible = True)]
757
- yield ["", history2, "SUBMIT", "STOP"]
758
  try:
759
  response = agent.run(message)
760
  time.sleep(0.1)
761
  history2 = history2 + [(None, response)]
762
- # yield ["", history2, gr.update(visible = True), gr.update(visible = False)]
763
- yield ["", history2, None, None]
764
  print ("response of chatbot:", response)
765
  # real_content = response[-1:]
766
  # print("real_content", real_content)
@@ -770,7 +770,7 @@ def chathmi4(message, history2):
770
  print("file_name:", file_name)
771
  history2 = history2 + [(None, (file_name,))]
772
  Filename_Chatbot = file_name
773
- yield ["", history2, None, None]
774
  except:
775
  print("No need to add file in chatbot")
776
 
 
753
  print("Input Message:", message)
754
  last_request = message
755
  history2 = history2 + [(message, None)]
756
+ yield ["", history2, gr.update(visible = False), gr.update(visible = True)]
757
+ # yield ["", history2, "SUBMIT", "STOP"]
758
  try:
759
  response = agent.run(message)
760
  time.sleep(0.1)
761
  history2 = history2 + [(None, response)]
762
+ yield ["", history2, gr.update(visible = True), gr.update(visible = False)]
763
+ # yield ["", history2, None, None]
764
  print ("response of chatbot:", response)
765
  # real_content = response[-1:]
766
  # print("real_content", real_content)
 
770
  print("file_name:", file_name)
771
  history2 = history2 + [(None, (file_name,))]
772
  Filename_Chatbot = file_name
773
+ yield ["", history2, "SUBMIT", "STOP"]
774
  except:
775
  print("No need to add file in chatbot")
776