sheikh commited on
Commit
8aee0b1
·
1 Parent(s): e747e0f

Update SLR.py

Browse files
Files changed (1) hide show
  1. SLR.py +1 -1
SLR.py CHANGED
@@ -112,7 +112,7 @@ class SLR(datasets.GeneratorBasedBuilder):
112
  image_path = os.path.join(img_dir, file)
113
  image_path = image_path.replace("json", "jpg")
114
  image, size = load_image(image_path)
115
- for item in data[1]:
116
 
117
  labels=item['label']
118
  word=item['text']
 
112
  image_path = os.path.join(img_dir, file)
113
  image_path = image_path.replace("json", "jpg")
114
  image, size = load_image(image_path)
115
+ for item in data[0]:
116
 
117
  labels=item['label']
118
  word=item['text']