Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|