From 42e6b9e95bf64077a5b8d80155b4d0ae730d7e18 Mon Sep 17 00:00:00 2001 From: VectorAICreations <168691883+VectorAICreations@users.noreply.github.com> Date: Sun, 25 May 2025 00:17:30 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20erro=20de=20concatena=C3=A7=C3=A3o=20?= =?UTF-8?q?quando=20timestamps=20s=C3=A3o=20None?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/src/routers/development.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/routers/development.py b/api/src/routers/development.py index d78aa3c..dc21c96 100644 --- a/api/src/routers/development.py +++ b/api/src/routers/development.py @@ -225,8 +225,8 @@ async def create_captioned_speech( # Add any chunks that may be in the acumulator into the return word_timestamps if chunk_data.word_timestamps is not None: - chunk_data.word_timestamps = ( - timestamp_acumulator + chunk_data.word_timestamps + chunk_data.word_timestamps = (timestamp_acumulator or []) + (chunk_data.word_timestamps or []) + ) timestamp_acumulator = [] else: