Datasets:
frgfm
commited on
Commit
•
3402e41
1
Parent(s):
713dd4b
fix: Tries to fix preview
Browse files- imagenette.py +3 -1
imagenette.py
CHANGED
@@ -51,14 +51,16 @@ _REPO = "https://huggingface.co/datasets/frgfm/imagenette/resolve/main/metadata"
|
|
51 |
class OpenFireConfig(datasets.BuilderConfig):
|
52 |
"""BuilderConfig for OpenFire."""
|
53 |
|
54 |
-
def __init__(self, data_url, **kwargs):
|
55 |
"""BuilderConfig for OpenFire.
|
56 |
Args:
|
57 |
data_url: `string`, url to download the zip file from.
|
|
|
58 |
**kwargs: keyword arguments forwarded to super.
|
59 |
"""
|
60 |
super(OpenFireConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
61 |
self.data_url = data_url
|
|
|
62 |
|
63 |
|
64 |
class OpenFire(datasets.GeneratorBasedBuilder):
|
|
|
51 |
class OpenFireConfig(datasets.BuilderConfig):
|
52 |
"""BuilderConfig for OpenFire."""
|
53 |
|
54 |
+
def __init__(self, data_url, metadata_urls, **kwargs):
|
55 |
"""BuilderConfig for OpenFire.
|
56 |
Args:
|
57 |
data_url: `string`, url to download the zip file from.
|
58 |
+
matadata_urls: dictionary with keys 'train' and 'validation' containing the archive metadata URLs
|
59 |
**kwargs: keyword arguments forwarded to super.
|
60 |
"""
|
61 |
super(OpenFireConfig, self).__init__(version=datasets.Version("1.0.0"), **kwargs)
|
62 |
self.data_url = data_url
|
63 |
+
self.metadata_urls = metadata_urls
|
64 |
|
65 |
|
66 |
class OpenFire(datasets.GeneratorBasedBuilder):
|