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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -80,13 +80,13 @@ def call_search(purpose, task, history, directory, action_input):
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
87
- else:
88
- history += "{}\n".format(line)
89
- return "MAIN", None, history, task
90
 
91
  def call_set_task(purpose, task, history, directory, action_input):
92
  task = run_gpt(
 
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
87
+ else: # Indentation corrected here
88
+ history += "{}\n".format(line)
89
+ return "MAIN", None, history, task
90
 
91
  def call_set_task(purpose, task, history, directory, action_input):
92
  task = run_gpt(