Datasets:
Update test_images_demo.py
Browse files- test_images_demo.py +2 -2
test_images_demo.py
CHANGED
@@ -55,9 +55,9 @@ class ExampleImages(datasets.GeneratorBasedBuilder):
|
|
55 |
for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
|
56 |
filepath, image = img_obj
|
57 |
|
58 |
-
|
59 |
|
60 |
yield idx, {
|
61 |
"image": {"path": filepath, "bytes": image.read()},
|
62 |
-
"text":
|
63 |
}
|
|
|
55 |
for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
|
56 |
filepath, image = img_obj
|
57 |
|
58 |
+
text_value = meta_txt.split("= ")[-1].strip()
|
59 |
|
60 |
yield idx, {
|
61 |
"image": {"path": filepath, "bytes": image.read()},
|
62 |
+
"text": text_value,
|
63 |
}
|