phongdtd commited on
Commit
0f67128
·
1 Parent(s): 257a1be

[Update] Update

Browse files
Files changed (1) hide show
  1. custom_common_voice.py +6 -4
custom_common_voice.py CHANGED
@@ -188,10 +188,12 @@ class CustomCommonVoice(datasets.GeneratorBasedBuilder):
188
  "script": script,
189
  }
190
 
191
- inside_clips_dir = False
 
 
192
  for path, f in audio_files:
193
  if path.startswith(path_to_clips):
194
- inside_clips_dir = True
195
  if path in examples:
196
  audio = {"path": path, "bytes": f.read()}
197
  yield path, {**examples[path], "audio": audio}
@@ -199,8 +201,8 @@ class CustomCommonVoice(datasets.GeneratorBasedBuilder):
199
  # continue
200
  # elif ".txt" in path:
201
  # continue
202
- elif inside_clips_dir:
203
- break
204
 
205
  # for path, f in tsv_files:
206
  # if path == filepath:
 
188
  "script": script,
189
  }
190
 
191
+ # inside_clips_dir = False
192
+
193
+ assert False, ""
194
  for path, f in audio_files:
195
  if path.startswith(path_to_clips):
196
+ # inside_clips_dir = True
197
  if path in examples:
198
  audio = {"path": path, "bytes": f.read()}
199
  yield path, {**examples[path], "audio": audio}
 
201
  # continue
202
  # elif ".txt" in path:
203
  # continue
204
+ # elif inside_clips_dir:
205
+ # break
206
 
207
  # for path, f in tsv_files:
208
  # if path == filepath: