Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -205,8 +205,10 @@ def run_action(purpose, task, history, directory, action_name, action_input):
|
|
205 |
print(f'action_name::{action_name}')
|
206 |
try:
|
207 |
if "RESPONSE" in action_name or "COMPLETE" in action_name:
|
208 |
-
|
209 |
-
task=
|
|
|
|
|
210 |
return action_name, "COMPLETE", history, task
|
211 |
|
212 |
# compress the history when it is long
|
|
|
205 |
print(f'action_name::{action_name}')
|
206 |
try:
|
207 |
if "RESPONSE" in action_name or "COMPLETE" in action_name:
|
208 |
+
|
209 |
+
action_name, action_input, history, task = end_fn(purpose, task, history, directory, action_input)
|
210 |
+
#action_name="COMPLETE"
|
211 |
+
#task="END"
|
212 |
return action_name, "COMPLETE", history, task
|
213 |
|
214 |
# compress the history when it is long
|