Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -143,6 +143,8 @@ def call_main(purpose, task, history, directory, action_input):
|
|
143 |
history += "{}\n".format(line)
|
144 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
145 |
task = "END"
|
|
|
|
|
146 |
return action_name, action_input, history, task
|
147 |
else:
|
148 |
return action_name, action_input, history, task
|
|
|
143 |
history += "{}\n".format(line)
|
144 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
145 |
task = "END"
|
146 |
+
action_name, action_input, history, task = end_fn(purpose, task, history, directory, action_input)
|
147 |
+
|
148 |
return action_name, action_input, history, task
|
149 |
else:
|
150 |
return action_name, action_input, history, task
|