Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def add_text(history, task_history, text):
|
|
130 |
history.append((_parse_text(text), None))
|
131 |
task_history.append((text, None))
|
132 |
print("Add Text - After: task_history =", task_history)
|
133 |
-
return history, task_history
|
134 |
|
135 |
def add_file(history, task_history, file):
|
136 |
print("Add File - Before: task_history =", task_history)
|
@@ -155,7 +155,7 @@ def reset_user_input():
|
|
155 |
|
156 |
def reset_state(task_history):
|
157 |
print("Reset State - Before: task_history =", task_history)
|
158 |
-
task_history = []
|
159 |
print("Reset State - After: task_history =", task_history)
|
160 |
return []
|
161 |
|
|
|
130 |
history.append((_parse_text(text), None))
|
131 |
task_history.append((text, None))
|
132 |
print("Add Text - After: task_history =", task_history)
|
133 |
+
return history, task_history
|
134 |
|
135 |
def add_file(history, task_history, file):
|
136 |
print("Add File - Before: task_history =", task_history)
|
|
|
155 |
|
156 |
def reset_state(task_history):
|
157 |
print("Reset State - Before: task_history =", task_history)
|
158 |
+
task_history = []
|
159 |
print("Reset State - After: task_history =", task_history)
|
160 |
return []
|
161 |
|