Omnibus commited on
Commit
384df22
·
1 Parent(s): 5f905bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -416,10 +416,10 @@ def run_action(purpose, task, history, action_name, action_input):
416
 
417
  def run(purpose,history,data=None,file=None,url=None,pdf_url=None,pdf_batch=None):
418
  task=None
419
- history = ""
420
- #if not history:
421
- # history = []
422
- action_name = "UPDATE-TASK" if task is None else "MAIN"
423
  action_input = None
424
  while True:
425
  print("")
@@ -438,9 +438,9 @@ def run(purpose,history,data=None,file=None,url=None,pdf_url=None,pdf_batch=None
438
  action_name,
439
  action_input,
440
  )
441
- yield None,history,None
442
  if action_name == "COMPLETE":
443
- return None,history,None
444
 
445
  def clear_fn():
446
  return "",[(None,None)]
 
416
 
417
  def run(purpose,history,data=None,file=None,url=None,pdf_url=None,pdf_batch=None):
418
  task=None
419
+ #history = ""
420
+ if not history:
421
+ history = []
422
+ action_name = "SEARCH_ENGINE" if task is None else "MAIN"
423
  action_input = None
424
  while True:
425
  print("")
 
438
  action_name,
439
  action_input,
440
  )
441
+ yield None,[(purpose,history)],None
442
  if action_name == "COMPLETE":
443
+ return None,[(purpose,history)],None
444
 
445
  def clear_fn():
446
  return "",[(None,None)]