Update images-targz.py
Browse files- images-targz.py +1 -1
images-targz.py
CHANGED
|
@@ -72,7 +72,7 @@ class ImagesTrial(datasets.GeneratorBasedBuilder):
|
|
| 72 |
#iteratre through images
|
| 73 |
for filepath, image in images:
|
| 74 |
yield idx, {
|
| 75 |
-
"image": {"
|
| 76 |
#Option to map text
|
| 77 |
|
| 78 |
# "text": descriptions[idx],
|
|
|
|
| 72 |
#iteratre through images
|
| 73 |
for filepath, image in images:
|
| 74 |
yield idx, {
|
| 75 |
+
"image": {"path":filepath, "bytes":image.read()},
|
| 76 |
#Option to map text
|
| 77 |
|
| 78 |
# "text": descriptions[idx],
|