Syoy commited on
Commit
59cb274
·
1 Parent(s): a294470

download json layout

Browse files
Files changed (1) hide show
  1. dcase23-task2-enriched.py +4 -1
dcase23-task2-enriched.py CHANGED
@@ -189,7 +189,10 @@ class DCASE2023Task2DatasetConfig(datasets.BuilderConfig):
189
  return df.copy()
190
 
191
  def get_layout(self):
192
- return self.layout
 
 
 
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):