Spaces:
Sleeping
Sleeping
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -77,10 +77,10 @@ def call_search(purpose, task, history, directory, action_input):
|
|
77 |
response = i_s(action_input)
|
78 |
print(response)
|
79 |
history += "observation: search result is: {}\n".format(response)
|
80 |
-
|
81 |
history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
|
82 |
except Exception as e:
|
83 |
-
|
84 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
85 |
task = "END"
|
86 |
return action_name, action_input, history, task
|
|
|
77 |
response = i_s(action_input)
|
78 |
print(response)
|
79 |
history += "observation: search result is: {}\n".format(response)
|
80 |
+
else:
|
81 |
history += "observation: I need to provide a valid URL to 'action: SEARCH action_input=https://URL'\n"
|
82 |
except Exception as e:
|
83 |
+
history += "{}\n".format(line)
|
84 |
if "COMPLETE" in action_name or "COMPLETE" in action_input:
|
85 |
task = "END"
|
86 |
return action_name, action_input, history, task
|