Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,8 +281,8 @@ def voice_cloning(segments, audio_path, max_threads=2):
|
|
| 281 |
# Check if ref_text and gen_text are not empty
|
| 282 |
if not ref_text or not gen_text:
|
| 283 |
print(f"Skipping segment {segment} due to empty ref_text or gen_text")
|
| 284 |
-
|
| 285 |
-
|
| 286 |
# if gen_text:
|
| 287 |
# future = executor.submit(run_f5_tts_infer, "F5TTS_v1_Base",
|
| 288 |
# ref_audio, ref_text, gen_text,
|
|
|
|
| 281 |
# Check if ref_text and gen_text are not empty
|
| 282 |
if not ref_text or not gen_text:
|
| 283 |
print(f"Skipping segment {segment} due to empty ref_text or gen_text")
|
| 284 |
+
continue
|
| 285 |
+
run_f5_tts_infer("F5TTS_v1_Base", ref_audio, ref_text, gen_text, output_dir=cloned_audio_dir, output_file=f"output_{segment['id']}.wav")
|
| 286 |
# if gen_text:
|
| 287 |
# future = executor.submit(run_f5_tts_infer, "F5TTS_v1_Base",
|
| 288 |
# ref_audio, ref_text, gen_text,
|