Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def parse_action(string: str):
|
|
36 |
|
37 |
|
38 |
|
39 |
-
VERBOSE =
|
40 |
MAX_HISTORY = 100
|
41 |
MAX_DATA = 100
|
42 |
|
@@ -242,10 +242,11 @@ def call_main(purpose, task, history, action_input):
|
|
242 |
return action_name, action_input, history, task
|
243 |
else:
|
244 |
|
245 |
-
|
246 |
#assert False, "unknown action: {}".format(line)
|
247 |
-
return "UPDATE-TASK", None, history, task
|
248 |
-
|
|
|
249 |
return "MAIN", None, history, task
|
250 |
|
251 |
|
|
|
36 |
|
37 |
|
38 |
|
39 |
+
VERBOSE = True
|
40 |
MAX_HISTORY = 100
|
41 |
MAX_DATA = 100
|
42 |
|
|
|
242 |
return action_name, action_input, history, task
|
243 |
else:
|
244 |
|
245 |
+
history += "observation: {}\n".format(line)
|
246 |
#assert False, "unknown action: {}".format(line)
|
247 |
+
#return "UPDATE-TASK", None, history, task
|
248 |
+
if "VERBOSE":
|
249 |
+
print(history)
|
250 |
return "MAIN", None, history, task
|
251 |
|
252 |
|