Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ def call_set_task(purpose, task, history, directory, action_input):
|
|
169 |
|
170 |
def end_fn(purpose, task, history, directory, action_input):
|
171 |
task = "END"
|
172 |
-
return "COMPLETE",
|
173 |
NAME_TO_FUNC = {
|
174 |
"MAIN": call_main,
|
175 |
"UPDATE-TASK": call_set_task,
|
@@ -184,7 +184,7 @@ def run_action(purpose, task, history, directory, action_name, action_input):
|
|
184 |
if "RESPONSE" in action_name or "COMPLETE" in action_name:
|
185 |
action_name="COMPLETE"
|
186 |
task="END"
|
187 |
-
return action_name,
|
188 |
|
189 |
# compress the history when it is long
|
190 |
if len(history.split("\n")) > MAX_HISTORY:
|
|
|
169 |
|
170 |
def end_fn(purpose, task, history, directory, action_input):
|
171 |
task = "END"
|
172 |
+
return "COMPLETE", "COMPLETE", history, task
|
173 |
NAME_TO_FUNC = {
|
174 |
"MAIN": call_main,
|
175 |
"UPDATE-TASK": call_set_task,
|
|
|
184 |
if "RESPONSE" in action_name or "COMPLETE" in action_name:
|
185 |
action_name="COMPLETE"
|
186 |
task="END"
|
187 |
+
return action_name, "COMPLETE", history, task
|
188 |
|
189 |
# compress the history when it is long
|
190 |
if len(history.split("\n")) > MAX_HISTORY:
|