cnph001 commited on
Commit
7bb271e
·
verified ·
1 Parent(s): 41426a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -176,9 +176,9 @@ async def process_transcript_line(line, default_voice, rate, pitch):
176
  process_next = not process_next
177
  continue
178
  if process_next and part.strip():
179
- if check1:
180
- # Skip the first iteration logic here if needed
181
- check1 = True # After first iteration, set it to True
182
  audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
183
  if audio_path:
184
  audio_segments.append(audio_path)
 
176
  process_next = not process_next
177
  continue
178
  if process_next and part.strip():
179
+ if check1:
180
+ # Skip the first iteration logic here if needed
181
+ check1 = False # After first iteration, set it to False
182
  audio_path = await generate_audio_with_voice_prefix(part, default_voice, rate, pitch)
183
  if audio_path:
184
  audio_segments.append(audio_path)