Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,10 @@ def call_main(purpose, task, history, action_input):
|
|
| 121 |
history += "{}\n".format(line)
|
| 122 |
return action_name, action_input, history, task
|
| 123 |
else:
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
| 125 |
return "MAIN", None, history, task
|
| 126 |
|
| 127 |
|
|
@@ -187,6 +190,7 @@ def run(purpose,history):
|
|
| 187 |
action_name,
|
| 188 |
action_input,
|
| 189 |
)
|
|
|
|
| 190 |
if action_name == "COMPLETE":
|
| 191 |
return history
|
| 192 |
|
|
|
|
| 121 |
history += "{}\n".format(line)
|
| 122 |
return action_name, action_input, history, task
|
| 123 |
else:
|
| 124 |
+
history += "observation: unknown action: {}\n".format(line)
|
| 125 |
+
#assert False, "unknown action: {}".format(line)
|
| 126 |
+
return action_name, action_input, history, task
|
| 127 |
+
|
| 128 |
return "MAIN", None, history, task
|
| 129 |
|
| 130 |
|
|
|
|
| 190 |
action_name,
|
| 191 |
action_input,
|
| 192 |
)
|
| 193 |
+
yield history
|
| 194 |
if action_name == "COMPLETE":
|
| 195 |
return history
|
| 196 |
|