Update SLR.py
Browse files
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[
|
| 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']
|