Omnibus commited on
Commit
4e1aa2b
·
1 Parent(s): 0f55aef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -62,10 +62,10 @@ def call_search(purpose, task, history, action_input):
62
  print (return_list)
63
  history = "observation: the search results are:\n {}\n".format(return_list)
64
  else:
65
- history = "observation: I need to trigger a search using the following syntax:\naction: SEARCH action_input SEARCH_QUERY"
66
  except Exception as e:
67
  print (e)
68
- history = "observation: The search query I used did not return a valid response, I should try a different query from the list of options"
69
  #else:
70
  # history = "observation: The search query I used did not return a valid response"
71
 
@@ -194,7 +194,7 @@ def run(purpose,history):
194
  history = ""
195
  #if not history:
196
  # history = []
197
- action_name = "MAIN" if task is None else "MAIN"
198
  action_input = None
199
  while True:
200
  print("")
 
62
  print (return_list)
63
  history = "observation: the search results are:\n {}\n".format(return_list)
64
  else:
65
+ history = "observation: I need to trigger a search using the following syntax:\naction: SEARCH action_input SEARCH_QUERY\n"
66
  except Exception as e:
67
  print (e)
68
+ 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"
69
  #else:
70
  # history = "observation: The search query I used did not return a valid response"
71
 
 
194
  history = ""
195
  #if not history:
196
  # history = []
197
+ action_name = "SEARCH" if task is None else "MAIN"
198
  action_input = None
199
  while True:
200
  print("")