Omnibus commited on
Commit
65e9cc0
·
1 Parent(s): 384df22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -417,8 +417,9 @@ def run_action(purpose, task, history, action_name, action_input):
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:
 
417
  def run(purpose,history,data=None,file=None,url=None,pdf_url=None,pdf_batch=None):
418
  task=None
419
  #history = ""
420
+ if history:
421
+ history=format_prompt(history)
422
+ else: history=""
423
  action_name = "SEARCH_ENGINE" if task is None else "MAIN"
424
  action_input = None
425
  while True: