Leyo commited on
Commit
35a5cb2
·
1 Parent(s): f8876b5

take off try catch

Browse files
Files changed (1) hide show
  1. NLVR2.py +2 -5
NLVR2.py CHANGED
@@ -107,8 +107,5 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
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
 
107
  "right_image": str(ex["right_url"]),
108
  "label": ex["label"],
109
  }
110
+ idx += 1
111
+ yield idx, record