Datasets:

toniwuest commited on
Commit
599dc81
·
verified ·
1 Parent(s): 417abf8

Update CLEVR-Sudoku.py

Browse files
Files changed (1) hide show
  1. CLEVR-Sudoku.py +2 -2
CLEVR-Sudoku.py CHANGED
@@ -137,7 +137,7 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
137
  return [
138
  datasets.SplitGenerator(
139
  name=datasets.Split.TRAIN,
140
- gen_kwargs={"archive_path": archive_path}
141
  )
142
  ]
143
 
@@ -164,7 +164,7 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
164
  # ),
165
  # ]
166
 
167
- def _generate_examples(self, archive_path):
168
  """Yields examples from the archive, assuming JSON files inside a 'json' folder."""
169
  # This uses `dl_manager.iter_archive` to iterate over files in the archive
170
  with open(archive_path, "rb") as f:
 
137
  return [
138
  datasets.SplitGenerator(
139
  name=datasets.Split.TRAIN,
140
+ gen_kwargs={"archive_path": archive_path, "dl_manager": dl_manager}
141
  )
142
  ]
143
 
 
164
  # ),
165
  # ]
166
 
167
+ def _generate_examples(self, archive_path, dl_manager):
168
  """Yields examples from the archive, assuming JSON files inside a 'json' folder."""
169
  # This uses `dl_manager.iter_archive` to iterate over files in the archive
170
  with open(archive_path, "rb") as f: