Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -325,14 +325,14 @@ def find_all(purpose,task,history, url):
|
|
| 325 |
print (f'out:: {out}')
|
| 326 |
history += "observation: the search results are:\n {}\n".format(out)
|
| 327 |
task = "complete?"
|
| 328 |
-
return "
|
| 329 |
else:
|
| 330 |
history += "observation: I need to trigger a search using the following syntax:\naction: SCRAPE_WEBSITE action_input=URL\n"
|
| 331 |
-
return "
|
| 332 |
except Exception as e:
|
| 333 |
print (e)
|
| 334 |
history += "observation: I need to trigger a search using the following syntax:\naction: SCRAPE_WEBSITE action_input=URL\n"
|
| 335 |
-
return "
|
| 336 |
|
| 337 |
#else:
|
| 338 |
# history = "observation: The search query I used did not return a valid response"
|
|
|
|
| 325 |
print (f'out:: {out}')
|
| 326 |
history += "observation: the search results are:\n {}\n".format(out)
|
| 327 |
task = "complete?"
|
| 328 |
+
return "UPDATE-TASK", None, history, task
|
| 329 |
else:
|
| 330 |
history += "observation: I need to trigger a search using the following syntax:\naction: SCRAPE_WEBSITE action_input=URL\n"
|
| 331 |
+
return "UPDATE-TASK", None, history, task
|
| 332 |
except Exception as e:
|
| 333 |
print (e)
|
| 334 |
history += "observation: I need to trigger a search using the following syntax:\naction: SCRAPE_WEBSITE action_input=URL\n"
|
| 335 |
+
return "UPDATE-TASK", None, history, task
|
| 336 |
|
| 337 |
#else:
|
| 338 |
# history = "observation: The search query I used did not return a valid response"
|