johann22 commited on
Commit
085b6c2
1 Parent(s): f599bc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -118,13 +118,7 @@ def call_search(purpose, task, history, directory, action_input):
118
  except Exception as e:
119
  history += "observation: {}'\n".format(e)
120
  return "MAIN", None, history, task
121
- NAME_TO_FUNC = {
122
- "MAIN": call_main,
123
- "UPDATE-TASK": call_set_task,
124
- "SEARCH": call_search,
125
- "COMPLETE": end_fn,
126
 
127
- }
128
  def call_main(purpose, task, history, directory, action_input):
129
  resp = run_gpt(
130
  ACTION_PROMPT,
@@ -177,7 +171,13 @@ def end_fn(purpose, task, history, directory, action_input):
177
  task = "END"
178
  return "COMPLETE", "COMPLETE", history, task
179
 
 
 
 
 
 
180
 
 
181
 
182
  def run_action(purpose, task, history, directory, action_name, action_input):
183
  print(f'action_name::{action_name}')
 
118
  except Exception as e:
119
  history += "observation: {}'\n".format(e)
120
  return "MAIN", None, history, task
 
 
 
 
 
121
 
 
122
  def call_main(purpose, task, history, directory, action_input):
123
  resp = run_gpt(
124
  ACTION_PROMPT,
 
171
  task = "END"
172
  return "COMPLETE", "COMPLETE", history, task
173
 
174
+ NAME_TO_FUNC = {
175
+ "MAIN": call_main,
176
+ "UPDATE-TASK": call_set_task,
177
+ "SEARCH": call_search,
178
+ "COMPLETE": end_fn,
179
 
180
+ }
181
 
182
  def run_action(purpose, task, history, directory, action_name, action_input):
183
  print(f'action_name::{action_name}')