Omnibus commited on
Commit
6a02a37
1 Parent(s): eb7a6f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -228,10 +228,12 @@ def call_main(purpose, task, history, action_input):
228
  continue
229
  if line.startswith("thought: "):
230
  history += "{}\n".format(line)
231
- elif line.startswith("action: COMPLETE"):
 
232
  return "COMPLETE", None, history, task
233
- elif line.startswith("action: "):
234
  action_name, action_input = parse_action(line)
 
235
  history += "{}\n".format(line)
236
  return action_name, action_input, history, task
237
  else:
 
228
  continue
229
  if line.startswith("thought: "):
230
  history += "{}\n".format(line)
231
+ if line.startswith("action: COMPLETE"):
232
+ print("COMPLETE called")
233
  return "COMPLETE", None, history, task
234
+ if line.startswith("action:"):
235
  action_name, action_input = parse_action(line)
236
+ print(f'ACTION::{action_name} -- INPUT :: {action_input}')
237
  history += "{}\n".format(line)
238
  return action_name, action_input, history, task
239
  else: