johann22 commited on
Commit
a65e22e
1 Parent(s): 821bd88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,7 +117,7 @@ def call_search(purpose, task, history, directory, action_input):
117
  print(response)
118
  history += "observation: search result is: {}\n".format(response)
119
  else:
120
- history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=URL'"
121
  return "MAIN", None, history, task
122
 
123
  def call_main(purpose, task, history, directory, action_input):
@@ -150,7 +150,7 @@ def call_main(purpose, task, history, directory, action_input):
150
  else:
151
  return action_name, action_input, history, task
152
  else:
153
- history += "observation: my last command caused an ERROR, I need to check the commands syntax, or use a different command"
154
 
155
  #return action_name, action_input, history, task
156
  #assert False, "unknown action: {}".format(line)
 
117
  print(response)
118
  history += "observation: search result is: {}\n".format(response)
119
  else:
120
+ history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=URL'\n"
121
  return "MAIN", None, history, task
122
 
123
  def call_main(purpose, task, history, directory, action_input):
 
150
  else:
151
  return action_name, action_input, history, task
152
  else:
153
+ history += "observation: my last command caused an ERROR, I need to check the commands syntax, or use a different command\n"
154
 
155
  #return action_name, action_input, history, task
156
  #assert False, "unknown action: {}".format(line)