Tonic commited on
Commit
2606229
β€’
1 Parent(s): ba47eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = [] # Reset task_history to an empty list
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