unknown commited on
Commit
9c4fc38
·
1 Parent(s): 77620f6
src/f5_tts/train/finetune_gradio.py CHANGED
@@ -812,8 +812,8 @@ def create_metadata(name_project, ch_tokenizer, progress=gr.Progress()):
812
  print(f"Error processing {file_audio}: {e}")
813
  continue
814
 
815
- if duration < 1 and duration > 25:
816
- error_files.append([file_audio, "duration < 1 and > 25 "])
817
  continue
818
  if len(text) < 4:
819
  error_files.append([file_audio, "very small text len 3"])
 
812
  print(f"Error processing {file_audio}: {e}")
813
  continue
814
 
815
+ if duration < 1 or duration > 25:
816
+ error_files.append([file_audio, "duration < 1 or > 25 "])
817
  continue
818
  if len(text) < 4:
819
  error_files.append([file_audio, "very small text len 3"])