Howuhh commited on
Commit
3e1d8f4
1 Parent(s): 2616fa1

Upload nle_hf_dataset.py

Browse files
Files changed (1) hide show
  1. nle_hf_dataset.py +5 -5
nle_hf_dataset.py CHANGED
@@ -106,11 +106,11 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
106
  )
107
 
108
  def _split_generators(self, dl_manager):
109
- # if self.config.data_files is None:
110
- urls = _URLS[self.config.name]
111
- # else:
112
- # urls = self.config.data_files["train"]
113
- print(self.config.data_files["train"])
114
 
115
  filepaths = [dl_manager.download(url) for url in urls]
116
  return [
 
106
  )
107
 
108
  def _split_generators(self, dl_manager):
109
+ if self.config.data_files is None:
110
+ urls = _URLS[self.config.name]
111
+ else:
112
+ urls = self.config.data_files["train"]
113
+ # print(self.config.data_files["train"])
114
 
115
  filepaths = [dl_manager.download(url) for url in urls]
116
  return [