Update fashion.py
Browse files- fashion.py +1 -1
fashion.py
CHANGED
|
@@ -93,7 +93,7 @@ class Fashion(datasets.GeneratorBasedBuilder):
|
|
| 93 |
#iterate through images
|
| 94 |
for filepath, image in images:
|
| 95 |
yield idx, {
|
| 96 |
-
"image": {"path": filepath, "
|
| 97 |
"id": datasets.Value("int64"),
|
| 98 |
"color": datasets.Value("string"),
|
| 99 |
"description": datasets.Value("string"),
|
|
|
|
| 93 |
#iterate through images
|
| 94 |
for filepath, image in images:
|
| 95 |
yield idx, {
|
| 96 |
+
"image": {"path": filepath, "bytes": image.read()},
|
| 97 |
"id": datasets.Value("int64"),
|
| 98 |
"color": datasets.Value("string"),
|
| 99 |
"description": datasets.Value("string"),
|