jamescalam
commited on
Commit
•
180fdae
1
Parent(s):
56d808a
Update image-text-demo.py
Browse files- image-text-demo.py +1 -1
image-text-demo.py
CHANGED
@@ -52,7 +52,7 @@ class ImageSet(datasets.GeneratorBasedBuilder):
|
|
52 |
for filepath, image in images:
|
53 |
description = filepath.split('/')[-1][:-4]
|
54 |
description = description.replace('_', ' ')
|
55 |
-
yield
|
56 |
"image": {"path": filepath, "bytes": image.read()},
|
57 |
"text": description,
|
58 |
}
|
|
|
52 |
for filepath, image in images:
|
53 |
description = filepath.split('/')[-1][:-4]
|
54 |
description = description.replace('_', ' ')
|
55 |
+
yield idx, {
|
56 |
"image": {"path": filepath, "bytes": image.read()},
|
57 |
"text": description,
|
58 |
}
|