Datasets:

toniwuest commited on
Commit
9a68693
·
verified ·
1 Parent(s): 28e6277

Update CLEVR-Sudoku.py

Browse files
Files changed (1) hide show
  1. CLEVR-Sudoku.py +4 -2
CLEVR-Sudoku.py CHANGED
@@ -136,10 +136,12 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
136
 
137
  print("generating examples from ", archive_path)
138
 
139
- archive_path = os.path.join(archive_path, "json")
140
- with open(archive_path) as f:
141
  file = json.load(f)
142
 
 
 
143
  for i, (file_path, file_obj) in enumerate(archive_path):
144
  print(file_path)
145
  if file_path.startswith("json/") and file_path.endswith(".json"):
 
136
 
137
  print("generating examples from ", archive_path)
138
 
139
+ archive_path = os.path.join(archive_path, "json", "sudoku.json")
140
+ with open(archive_path, encoding="utf-8") as f:
141
  file = json.load(f)
142
 
143
+ print(file)
144
+
145
  for i, (file_path, file_obj) in enumerate(archive_path):
146
  print(file_path)
147
  if file_path.startswith("json/") and file_path.endswith(".json"):