Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -138,7 +138,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
138 |
type = self.config.name.split('.')[-1]
|
139 |
urls={k:v for (k,v) in _URLs.items() if cfg_name in k and requests.get(v).status_code!=404}
|
140 |
data_file = dl_manager.download(urls)
|
141 |
-
self.files
|
142 |
train_key = data_dir+'-train'
|
143 |
print("datafile:",data_file, self.config.data_dir)
|
144 |
if train_key in data_file:
|
|
|
138 |
type = self.config.name.split('.')[-1]
|
139 |
urls={k:v for (k,v) in _URLs.items() if cfg_name in k and requests.get(v).status_code!=404}
|
140 |
data_file = dl_manager.download(urls)
|
141 |
+
self.files = {**self.files, **data_file}
|
142 |
train_key = data_dir+'-train'
|
143 |
print("datafile:",data_file, self.config.data_dir)
|
144 |
if train_key in data_file:
|