mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Corrige erro de concatenação quando timestamps são None
This commit is contained in:
parent
ce22f60344
commit
42e6b9e95b
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue