OuroborosM commited on
Commit
1185f58
·
1 Parent(s): 089ac30

correct callback

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -128,7 +128,7 @@ def stream(input_text) -> Generator:
128
  # Create a funciton to call - this will run in a thread
129
 
130
  def task():
131
- resp = agent.run(input_text, callbacks=QueueCallback(q))
132
  q.put(job_done)
133
 
134
  # Create a thread and start the function
 
128
  # Create a funciton to call - this will run in a thread
129
 
130
  def task():
131
+ resp = agent.run(input_text, callbacks=[QueueCallback(q)])
132
  q.put(job_done)
133
 
134
  # Create a thread and start the function