yonatanbitton commited on
Commit
488e836
1 Parent(s): e35f407

Update winogavil.py

Browse files
Files changed (1) hide show
  1. winogavil.py +1 -1
winogavil.py CHANGED
@@ -112,7 +112,7 @@ class Winogavil(datasets.GeneratorBasedBuilder):
112
  for r_idx, r in df.iterrows():
113
  r_dict = r.to_dict()
114
  r_dict['candidates'] = json.loads(r_dict['candidates'])
115
- candidates_images = [os.path.join(images_dir, "winogavil_images", f"{x}.{self.IMAGE_EXTENSION}") for x in r['candidates']]
116
  print(f"*** winogavil_images ***")
117
  print(candidates_images[0])
118
  r_dict['candidates_images'] = candidates_images
 
112
  for r_idx, r in df.iterrows():
113
  r_dict = r.to_dict()
114
  r_dict['candidates'] = json.loads(r_dict['candidates'])
115
+ candidates_images = [os.path.join(images_dir, "winogavil_images", f"{x}.{self.IMAGE_EXTENSION}") for x in r_dict['candidates']]
116
  print(f"*** winogavil_images ***")
117
  print(candidates_images[0])
118
  r_dict['candidates_images'] = candidates_images