Update Image-demo.py
Browse files- Image-demo.py +1 -1
Image-demo.py
CHANGED
@@ -56,7 +56,7 @@ class ImageSet(datasets.GeneratorBasedBuilder):
|
|
56 |
|
57 |
def _generate_examples(self, images, filepath):
|
58 |
""" This function returns the examples in the raw (text) form."""
|
59 |
-
_CAPTION = json.load(open(
|
60 |
for idx, (filepath, image) in enumerate(images):
|
61 |
# description = filepath.split('/')[-1][:-4]
|
62 |
# description = description.replace('_', ' ')
|
|
|
56 |
|
57 |
def _generate_examples(self, images, filepath):
|
58 |
""" This function returns the examples in the raw (text) form."""
|
59 |
+
_CAPTION = json.load(open(filepath, 'r'))
|
60 |
for idx, (filepath, image) in enumerate(images):
|
61 |
# description = filepath.split('/')[-1][:-4]
|
62 |
# description = description.replace('_', ' ')
|