Datasets:

lewtun HF staff commited on
Commit
7ea28ac
1 Parent(s): 16952d0
Files changed (1) hide show
  1. gtzan.py +2 -2
gtzan.py CHANGED
@@ -64,12 +64,12 @@ class Gtzan(datasets.GeneratorBasedBuilder):
64
  )
65
 
66
  def _split_generators(self, dl_manager):
67
- archive_path = dl_manager.download("data/genres.tar.gz")
68
  return [
69
  datasets.SplitGenerator(
70
  name=datasets.Split.TRAIN,
71
  gen_kwargs={
72
- "local_extracted_archive": dl_manager.iter_archive(archive_path),
73
  },
74
  )
75
  ]
 
64
  )
65
 
66
  def _split_generators(self, dl_manager):
67
+ local_extracted_archive = dl_manager.download_and_extract("data/genres.tar.gz")
68
  return [
69
  datasets.SplitGenerator(
70
  name=datasets.Split.TRAIN,
71
  gen_kwargs={
72
+ "local_extracted_archive": local_extracted_archive,
73
  },
74
  )
75
  ]