Update image-demo.py
Browse files- image-demo.py +1 -0
image-demo.py
CHANGED
|
@@ -133,6 +133,7 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
|
|
| 133 |
idx = 0
|
| 134 |
#iterate through images
|
| 135 |
for filepath, image in images:
|
|
|
|
| 136 |
yield idx, {
|
| 137 |
"image": {"path": filepath, "bytes": image.read()},
|
| 138 |
"text": descriptions[idx]
|
|
|
|
| 133 |
idx = 0
|
| 134 |
#iterate through images
|
| 135 |
for filepath, image in images:
|
| 136 |
+
print(filepath)
|
| 137 |
yield idx, {
|
| 138 |
"image": {"path": filepath, "bytes": image.read()},
|
| 139 |
"text": descriptions[idx]
|