Update image-demo.py
Browse files- image-demo.py +2 -1
image-demo.py
CHANGED
|
@@ -26,7 +26,7 @@ This new dataset is designed to solve this great NLP task and is crafted with a
|
|
| 26 |
"""
|
| 27 |
|
| 28 |
# TODO: Add a link to an official homepage for the dataset here
|
| 29 |
-
_HOMEPAGE = "https://huggingface.co/datasets/gorrox14/
|
| 30 |
|
| 31 |
# TODO: Add the licence for the dataset here if you can find it
|
| 32 |
_LICENSE = ""
|
|
@@ -80,6 +80,7 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
|
|
| 80 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 81 |
def _generate_examples(self, images):
|
| 82 |
idx = 0
|
|
|
|
| 83 |
for filepath, image in images:
|
| 84 |
yield idx, {
|
| 85 |
"image" : {"path": filepath, "bytes": image.read()},
|
|
|
|
| 26 |
"""
|
| 27 |
|
| 28 |
# TODO: Add a link to an official homepage for the dataset here
|
| 29 |
+
_HOMEPAGE = "https://huggingface.co/datasets/gorrox14/image-demo"
|
| 30 |
|
| 31 |
# TODO: Add the licence for the dataset here if you can find it
|
| 32 |
_LICENSE = ""
|
|
|
|
| 80 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 81 |
def _generate_examples(self, images):
|
| 82 |
idx = 0
|
| 83 |
+
print("HONA")
|
| 84 |
for filepath, image in images:
|
| 85 |
yield idx, {
|
| 86 |
"image" : {"path": filepath, "bytes": image.read()},
|