Datasets:

ArXiv:
License:
Anjaly commited on
Commit
dfeba44
1 Parent(s): ca81e9f

supporting audio zip files

Browse files
Files changed (1) hide show
  1. snow-mountain.py +1 -1
snow-mountain.py CHANGED
@@ -144,7 +144,7 @@ class Test(datasets.GeneratorBasedBuilder):
144
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
145
  archive_path = dl_manager.download(zip_url)
146
  for path, file in dl_manager.iter_archive(archive_path):
147
- content = path.read()
148
  if audio in path:
149
  audio_data[audio] = content
150
  if audio in audio_data:
 
144
  zip_url = '/'.join(row["path"].split('/')[:-1])+'.zip'
145
  archive_path = dl_manager.download(zip_url)
146
  for path, file in dl_manager.iter_archive(archive_path):
147
+ content = file.read()
148
  if audio in path:
149
  audio_data[audio] = content
150
  if audio in audio_data: