download json layout
Browse files
dcase23-task2-enriched.py
CHANGED
|
@@ -189,7 +189,10 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
|
|
| 189 |
return df.copy()
|
| 190 |
|
| 191 |
def get_layout(self):
|
| 192 |
-
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
|
| 195 |
class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
|
|
|
|
| 189 |
return df.copy()
|
| 190 |
|
| 191 |
def get_layout(self):
|
| 192 |
+
if not self._layout:
|
| 193 |
+
self._layout = datasets.DownloadManager().download("data/config-spotlight-layout.json")
|
| 194 |
+
|
| 195 |
+
return self._layout
|
| 196 |
|
| 197 |
|
| 198 |
class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
|