ProgramComputer commited on
Commit
489486f
1 Parent(s): f240218

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -3
test.py CHANGED
@@ -30,6 +30,7 @@ import requests
30
 
31
  import datasets
32
  import urllib3
 
33
 
34
 
35
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
@@ -256,7 +257,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
256
  )
257
  )
258
 
259
- mapped_paths = dl_manager.download_and_extract(
260
  dict(
261
  (
262
  placeholder_key,
@@ -299,8 +300,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
299
  )
300
 
301
  for path in paths[conf]:
302
- for root, dirs, files in os.walk(path):
303
- raise Exception(files)
304
  dataset_path = next(Path(path).iterdir())
305
  dataset_format = dataset_path.name
306
  for speaker_path in dataset_path.iterdir():
 
30
 
31
  import datasets
32
  import urllib3
33
+ import zipfile
34
 
35
 
36
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
 
257
  )
258
  )
259
 
260
+ mapped_paths = dl_manager.download(
261
  dict(
262
  (
263
  placeholder_key,
 
300
  )
301
 
302
  for path in paths[conf]:
303
+ raise Exception(zipfile.is_zipfile(path))
 
304
  dataset_path = next(Path(path).iterdir())
305
  dataset_format = dataset_path.name
306
  for speaker_path in dataset_path.iterdir():