Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
232 |
return "COMPLETE", None, history, task
|
233 |
-
|
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:
|