Update characters.py
Browse files- characters.py +1 -2
characters.py
CHANGED
|
@@ -64,8 +64,7 @@ class Characters(datasets.GeneratorBasedBuilder):
|
|
| 64 |
def _generate_examples(self, images):
|
| 65 |
"""Yields examples."""
|
| 66 |
for filepath, image in images:
|
| 67 |
-
print(image.read())
|
| 68 |
yield {
|
| 69 |
"image": {"path": filepath, "bytes": image.read()},
|
| 70 |
-
"text" : "
|
| 71 |
}
|
|
|
|
| 64 |
def _generate_examples(self, images):
|
| 65 |
"""Yields examples."""
|
| 66 |
for filepath, image in images:
|
|
|
|
| 67 |
yield {
|
| 68 |
"image": {"path": filepath, "bytes": image.read()},
|
| 69 |
+
"text" : "filepath",
|
| 70 |
}
|