johann22 commited on
Commit
ee72905
1 Parent(s): ddcf702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -344,8 +344,11 @@ def run(purpose,history):
344
  #print(hist)
345
  task=None
346
  directory="./"
 
 
347
  if not history:
348
  history = ""
 
349
  action_name = "UPDATE-TASK" if task is None else "MAIN"
350
  action_input = None
351
  while True:
 
344
  #print(hist)
345
  task=None
346
  directory="./"
347
+ if history:
348
+ history=eval(str(history).strip("[]"))
349
  if not history:
350
  history = ""
351
+
352
  action_name = "UPDATE-TASK" if task is None else "MAIN"
353
  action_input = None
354
  while True: