ppp121386 commited on
Commit
e86578a
·
1 Parent(s): 0d8875b

Update Image-demo.py

Browse files
Files changed (1) hide show
  1. 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(filePath, 'r'))
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('_', ' ')