Skip to content

Commit

Permalink
fix: updating response structure based on core library updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-alherrera authored and sfc-gh-twhite committed Dec 6, 2024
1 parent 9a72d52 commit 485e6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo_app/demo_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def run_acall(prompt, message_queue, analyst):
message_queue.put(line)

# Ensure the final output is correctly added to the queue
message_queue.put({"output": response["output"]})
message_queue.put({"output": response})


def process_message(prompt_id: str):
Expand All @@ -193,7 +193,7 @@ def run_analysis():
asyncio.set_event_loop(loop)
response = loop.run_until_complete(analyst.acall(prompt))
loop.close()
message_queue.put({"output": response["output"]})
message_queue.put({"output": response})

thread = threading.Thread(target=run_analysis)
thread.start()
Expand Down

0 comments on commit 485e6ab

Please sign in to comment.