johann22 commited on
Commit
3a78222
1 Parent(s): 973e1d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -169,7 +169,7 @@ def call_set_task(purpose, task, history, directory, action_input):
169
 
170
  def end_fn(purpose, task, history, directory, action_input):
171
  task = "END"
172
- return "COMPLETE", None, history, task
173
  NAME_TO_FUNC = {
174
  "MAIN": call_main,
175
  "UPDATE-TASK": call_set_task,
@@ -184,7 +184,7 @@ def run_action(purpose, task, history, directory, action_name, action_input):
184
  if "RESPONSE" in action_name or "COMPLETE" in action_name:
185
  action_name="COMPLETE"
186
  task="END"
187
- return action_name, action_input, history, task
188
 
189
  # compress the history when it is long
190
  if len(history.split("\n")) > MAX_HISTORY:
 
169
 
170
  def end_fn(purpose, task, history, directory, action_input):
171
  task = "END"
172
+ return "COMPLETE", "COMPLETE", history, task
173
  NAME_TO_FUNC = {
174
  "MAIN": call_main,
175
  "UPDATE-TASK": call_set_task,
 
184
  if "RESPONSE" in action_name or "COMPLETE" in action_name:
185
  action_name="COMPLETE"
186
  task="END"
187
+ return action_name, "COMPLETE", history, task
188
 
189
  # compress the history when it is long
190
  if len(history.split("\n")) > MAX_HISTORY: