Update test3.py
Browse files
test3.py
CHANGED
|
@@ -75,9 +75,9 @@ class Artwork(datasets.GeneratorBasedBuilder):
|
|
| 75 |
]
|
| 76 |
|
| 77 |
def _generate_examples(self, files):
|
| 78 |
-
for path in files:
|
| 79 |
yield {
|
| 80 |
-
"filename": path
|
| 81 |
-
"label": path
|
| 82 |
-
"image_data": path
|
| 83 |
}
|
|
|
|
| 75 |
]
|
| 76 |
|
| 77 |
def _generate_examples(self, files):
|
| 78 |
+
for path in files.itertuples():
|
| 79 |
yield {
|
| 80 |
+
"filename": path.file_name,
|
| 81 |
+
"label": path.label,
|
| 82 |
+
"image_data": path.image_data,
|
| 83 |
}
|