Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,6 +110,7 @@ def call_search(purpose, task, history, directory, action_input):
|
|
110 |
action_input = action_input.strip("<")
|
111 |
if ">" in action_input:
|
112 |
action_input = action_input.strip(">")
|
|
|
113 |
response = i_s(action_input)
|
114 |
#response = google(search_return)
|
115 |
print(response)
|
@@ -323,6 +324,8 @@ def run_action(purpose, task, history, directory, action_name, action_input):
|
|
323 |
history = compress_history(purpose, task, history, directory)
|
324 |
if not action_name in NAME_TO_FUNC:
|
325 |
action_name="MAIN"
|
|
|
|
|
326 |
assert action_name in NAME_TO_FUNC
|
327 |
|
328 |
print("RUN: ", action_name, action_input)
|
|
|
110 |
action_input = action_input.strip("<")
|
111 |
if ">" in action_input:
|
112 |
action_input = action_input.strip(">")
|
113 |
+
|
114 |
response = i_s(action_input)
|
115 |
#response = google(search_return)
|
116 |
print(response)
|
|
|
324 |
history = compress_history(purpose, task, history, directory)
|
325 |
if not action_name in NAME_TO_FUNC:
|
326 |
action_name="MAIN"
|
327 |
+
if action_name == "" or action_name == None:
|
328 |
+
action_name="MAIN"
|
329 |
assert action_name in NAME_TO_FUNC
|
330 |
|
331 |
print("RUN: ", action_name, action_input)
|