Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ async def process_transcript_line(line, default_voice, rate, pitch):
|
|
186 |
process_next = not process_next
|
187 |
continue
|
188 |
if process_next and part.strip():
|
189 |
-
if
|
190 |
check1 = False # set it to False
|
191 |
audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
|
192 |
if audio_path:
|
|
|
186 |
process_next = not process_next
|
187 |
continue
|
188 |
if process_next and part.strip():
|
189 |
+
if part == split_parts[-1]: # check if this is laster iteration,
|
190 |
check1 = False # set it to False
|
191 |
audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
|
192 |
if audio_path:
|