Leyo commited on
Commit
f8876b5
·
1 Parent(s): 7f04e33
Files changed (1) hide show
  1. NLVR2.py +5 -2
NLVR2.py CHANGED
@@ -107,5 +107,8 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
107
  "right_image": str(ex["right_url"]),
108
  "label": ex["label"],
109
  }
110
- idx += 1
111
- yield idx, record
 
 
 
 
107
  "right_image": str(ex["right_url"]),
108
  "label": ex["label"],
109
  }
110
+ try:
111
+ idx += 1
112
+ yield idx, record
113
+ except Exception:
114
+ pass