BoldActionMan
commited on
Commit
•
def7c32
1
Parent(s):
a7b4496
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def process_video(video_file, language_choice):
|
|
184 |
for i in range(0, len(translation_segments), batch_size):
|
185 |
batch = translation_segments[i:i + batch_size]
|
186 |
with ThreadPoolExecutor(max_workers=5) as executor:
|
187 |
-
batch_segment_files = list(executor.map(generate_segment_audio_batch, [batch] * len(speaker_ids), speaker_id))
|
188 |
batch_segment_files = [item for sublist in batch_segment_files for item in sublist] # Flatten the list
|
189 |
|
190 |
for segment_file, start, end, translated_text in batch_segment_files:
|
|
|
184 |
for i in range(0, len(translation_segments), batch_size):
|
185 |
batch = translation_segments[i:i + batch_size]
|
186 |
with ThreadPoolExecutor(max_workers=5) as executor:
|
187 |
+
batch_segment_files = list(executor.map(generate_segment_audio_batch, [batch] * len(speaker_ids), [speaker_id] * len(batch)))
|
188 |
batch_segment_files = [item for sublist in batch_segment_files for item in sublist] # Flatten the list
|
189 |
|
190 |
for segment_file, start, end, translated_text in batch_segment_files:
|