Skip to content

Commit

Permalink
fix: audio stream 누락 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kalsteve committed Jul 30, 2024
1 parent 12ee2a4 commit 6289c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/bubble_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def create_bubble(chat_id: int, content: str, db: Session):
loop = asyncio.get_event_loop()
gpt_task = loop.create_task(async_gpt_stream(text=content, message_queue=response_queue, chat_id=chat_id, prompt=prompt, tts_id=tts_id))

while not gpt_task.done():
while True:
message = await response_queue.get()
if message is None:
break
Expand Down

0 comments on commit 6289c2d

Please sign in to comment.