HugoLaurencon commited on
Commit
3482b10
·
1 Parent(s): 33a8c8f

fix bug (typo method)

Browse files
Files changed (1) hide show
  1. libri_light.py +1 -1
libri_light.py CHANGED
@@ -153,7 +153,7 @@ class LibriLight(datasets.GeneratorBasedBuilder):
153
  for path, f in files:
154
  if path.endswith(".flac"):
155
  path_split = path.split("/")
156
- audio_file = path._split[-1]
157
  id_ = audio_file.replace(".flac", "")
158
  file = path if local_extracted_archive else audio_file
159
  audio = {"path": file, "bytes": f.read()}
 
153
  for path, f in files:
154
  if path.endswith(".flac"):
155
  path_split = path.split("/")
156
+ audio_file = path_split[-1]
157
  id_ = audio_file.replace(".flac", "")
158
  file = path if local_extracted_archive else audio_file
159
  audio = {"path": file, "bytes": f.read()}