Omnibus commited on
Commit
d7d0e74
·
verified ·
1 Parent(s): cd97bbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -248,7 +248,7 @@ def call_main(purpose, task, history, action_input, result):
248
  action_name, action_input = parse_action(line)
249
  print(f'ACTION::{action_name} -- INPUT :: {action_input}')
250
  #history += "{}\n".format(line)
251
- return action_name, action_input, history, task
252
  else:
253
  pass
254
  #history += "{}\n".format(line)
@@ -365,7 +365,7 @@ def run_action(purpose, task, history, action_name, action_input,result):
365
  if action_name == "COMPLETE":
366
  print("Complete - Exiting")
367
  #exit(0)
368
- return "COMPLETE", None, history, task
369
 
370
  # compress the history when it is long
371
  if len(history.split("\n")) > MAX_HISTORY:
 
248
  action_name, action_input = parse_action(line)
249
  print(f'ACTION::{action_name} -- INPUT :: {action_input}')
250
  #history += "{}\n".format(line)
251
+ return action_name, action_input, history, task, result
252
  else:
253
  pass
254
  #history += "{}\n".format(line)
 
365
  if action_name == "COMPLETE":
366
  print("Complete - Exiting")
367
  #exit(0)
368
+ return "COMPLETE", None, history, task, result
369
 
370
  # compress the history when it is long
371
  if len(history.split("\n")) > MAX_HISTORY: