OuroborosM commited on
Commit
c68e8a7
·
1 Parent(s): d9e36f7

correct function

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -687,9 +687,10 @@ def retry(history):
687
  try:
688
  response = agent.run(message)
689
  time.sleep(0.1)
690
- history = history + [(None, response)]
691
- yield [history]
692
  print ("response of chatbot:", response)
 
 
693
  # real_content = response[-1:]
694
  # print("real_content", real_content)
695
  try:
 
687
  try:
688
  response = agent.run(message)
689
  time.sleep(0.1)
690
+ history = history + [[None, response]]
 
691
  print ("response of chatbot:", response)
692
+ yield [history]
693
+
694
  # real_content = response[-1:]
695
  # print("real_content", real_content)
696
  try: