Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,11 +85,13 @@ def call_search(purpose, task, history, action_input):
|
|
| 85 |
print("compressing...")
|
| 86 |
return_list = compress_data(rl,purpose,task,return_list)
|
| 87 |
history = "observation: the search results are:\n {}\n".format(return_list)
|
|
|
|
| 88 |
else:
|
| 89 |
history = "observation: I need to trigger a search using the following syntax:\naction: SEARCH action_input=SEARCH_QUERY\n"
|
|
|
|
| 90 |
except Exception as e:
|
| 91 |
print (e)
|
| 92 |
-
history = "observation:
|
| 93 |
return "UPDATE-TASK", None, history, task
|
| 94 |
|
| 95 |
#else:
|
|
|
|
| 85 |
print("compressing...")
|
| 86 |
return_list = compress_data(rl,purpose,task,return_list)
|
| 87 |
history = "observation: the search results are:\n {}\n".format(return_list)
|
| 88 |
+
return "COMPLETE", None, history, task
|
| 89 |
else:
|
| 90 |
history = "observation: I need to trigger a search using the following syntax:\naction: SEARCH action_input=SEARCH_QUERY\n"
|
| 91 |
+
return "UPDATE-TASK", None, history, task
|
| 92 |
except Exception as e:
|
| 93 |
print (e)
|
| 94 |
+
history = "observation: I need to trigger a search using the following syntax:\naction: SEARCH action_input=SEARCH_QUERY\n"
|
| 95 |
return "UPDATE-TASK", None, history, task
|
| 96 |
|
| 97 |
#else:
|