asahi417 commited on
Commit
c44a20d
·
1 Parent(s): 25e3cc0
Files changed (1) hide show
  1. push_s2t_translation.py +2 -1
push_s2t_translation.py CHANGED
@@ -51,10 +51,11 @@ def delete_audio(target_audio_file):
51
 
52
 
53
  # remove broken audio files
 
54
  features = []
55
  audio_loader = Audio()
56
  for i in tqdm(list(range(line_no_start, line_no_end))):
57
- if i in files:
58
  continue
59
  i = loader(files[i])
60
  i[f"{direction_text}.text"] = line2text[str(i)]
 
51
 
52
 
53
  # remove broken audio files
54
+ print("filtering....")
55
  features = []
56
  audio_loader = Audio()
57
  for i in tqdm(list(range(line_no_start, line_no_end))):
58
+ if i not in files:
59
  continue
60
  i = loader(files[i])
61
  i[f"{direction_text}.text"] = line2text[str(i)]