From 9c4fc38fa458a1eb2a6df403984dd563783ea00d Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Oct 2024 12:23:02 +0200 Subject: [PATCH] fix --- src/f5_tts/train/finetune_gradio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/f5_tts/train/finetune_gradio.py b/src/f5_tts/train/finetune_gradio.py index 23d7aa1..fe835b2 100644 --- a/src/f5_tts/train/finetune_gradio.py +++ b/src/f5_tts/train/finetune_gradio.py @@ -812,8 +812,8 @@ def create_metadata(name_project, ch_tokenizer, progress=gr.Progress()): print(f"Error processing {file_audio}: {e}") continue - if duration < 1 and duration > 25: - error_files.append([file_audio, "duration < 1 and > 25 "]) + if duration < 1 or duration > 25: + error_files.append([file_audio, "duration < 1 or > 25 "]) continue if len(text) < 4: error_files.append([file_audio, "very small text len 3"])