Update cats-image.py
Browse files- cats-image.py +2 -2
cats-image.py
CHANGED
|
@@ -86,9 +86,9 @@ class CatsImage(datasets.GeneratorBasedBuilder):
|
|
| 86 |
|
| 87 |
def _generate_examples(self, archive_path):
|
| 88 |
"""Generate examples."""
|
| 89 |
-
for
|
| 90 |
image = Image.open(filename)
|
| 91 |
example = {
|
| 92 |
"image": image,
|
| 93 |
}
|
| 94 |
-
yield example
|
|
|
|
| 86 |
|
| 87 |
def _generate_examples(self, archive_path):
|
| 88 |
"""Generate examples."""
|
| 89 |
+
for idx, filename in enumerate(archive_path):
|
| 90 |
image = Image.open(filename)
|
| 91 |
example = {
|
| 92 |
"image": image,
|
| 93 |
}
|
| 94 |
+
yield idx, example
|