Datasets:

ArXiv:
License:
Anjaly commited on
Commit
0b2b5e6
·
1 Parent(s): 806ddd7

supporting audio zip files

Browse files
Files changed (1) hide show
  1. snow-mountain.py +2 -2
snow-mountain.py CHANGED
@@ -139,8 +139,8 @@ class Test(datasets.GeneratorBasedBuilder):
139
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
140
  archive_path = dl_manager.download(zip_url)
141
  for path, file in dl_manager.iter_archive(archive_path):
142
- if filename in str(row["path"]):
143
- content = filename.read()
144
  break
145
  yield key, {
146
  "sentence": row["sentence"],
 
139
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
140
  archive_path = dl_manager.download(zip_url)
141
  for path, file in dl_manager.iter_archive(archive_path):
142
+ if file in str(row["path"]):
143
+ content = file.read()
144
  break
145
  yield key, {
146
  "sentence": row["sentence"],