Omnibus commited on
Commit
97a15ff
·
1 Parent(s): b8e3ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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: The search query I used did not return a valid response, I should try a different query from the list of options\n"
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: