cahya commited on
Commit
2feaf29
1 Parent(s): fd75b8b

fixed the path

Browse files
Files changed (1) hide show
  1. librivox-indonesia.py +1 -1
librivox-indonesia.py CHANGED
@@ -154,6 +154,6 @@ class LibriVoxIndonesia(datasets.GeneratorBasedBuilder):
154
  path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
155
  result["audio"] = {"path": path, "bytes": f.read()}
156
  # set path to None if the audio file doesn't exist locally (i.e. in streaming mode)
157
- result["path"] = path if local_extracted_archive else None
158
  yield id_, result
159
  id_ += 1
 
154
  path = os.path.join(local_extracted_archive, path) if local_extracted_archive else path
155
  result["audio"] = {"path": path, "bytes": f.read()}
156
  # set path to None if the audio file doesn't exist locally (i.e. in streaming mode)
157
+ result["path"] = path
158
  yield id_, result
159
  id_ += 1