Omnibus commited on
Commit
d35bb86
·
verified ·
1 Parent(s): 833cd45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 "MAIN", 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 "MAIN", 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 "MAIN", None, history, task
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"