Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpscr committed Oct 30, 2024
1 parent 77620f6 commit 9c4fc38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/f5_tts/train/finetune_gradio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 9c4fc38

Please sign in to comment.