From 6289c2d0973822f0459b337cd2fa89fad1742c91 Mon Sep 17 00:00:00 2001 From: kalsteve Date: Wed, 31 Jul 2024 02:37:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20audio=20stream=20=EB=88=84=EB=9D=BD=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/bubble_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/bubble_service.py b/app/services/bubble_service.py index 0e6ccef..2e2c9eb 100644 --- a/app/services/bubble_service.py +++ b/app/services/bubble_service.py @@ -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