Enable streaming
Browse files
gtzan.py
CHANGED
@@ -64,12 +64,12 @@ class Gtzan(datasets.GeneratorBasedBuilder):
|
|
64 |
)
|
65 |
|
66 |
def _split_generators(self, dl_manager):
|
67 |
-
|
68 |
return [
|
69 |
datasets.SplitGenerator(
|
70 |
name=datasets.Split.TRAIN,
|
71 |
gen_kwargs={
|
72 |
-
"local_extracted_archive":
|
73 |
},
|
74 |
)
|
75 |
]
|
|
|
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 |
]
|