acecalisto3 commited on
Commit
6101180
·
verified ·
1 Parent(s): 6cc9789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,10 +77,10 @@ def call_search(purpose, task, history, directory, action_input):
77
  response = i_s(action_input)
78
  print(response)
79
  history += "observation: search result is: {}\n".format(response)
80
- else:
81
  history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
82
  except Exception as e:
83
- history += "{}\n".format(line)
84
  if "COMPLETE" in action_name or "COMPLETE" in action_input:
85
  task = "END"
86
  return action_name, action_input, history, task
 
77
  response = i_s(action_input)
78
  print(response)
79
  history += "observation: search result is: {}\n".format(response)
80
+ else:
81
  history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
82
  except Exception as e:
83
+ history += "{}\n".format(line)
84
  if "COMPLETE" in action_name or "COMPLETE" in action_input:
85
  task = "END"
86
  return action_name, action_input, history, task