jamescalam commited on
Commit
56d808a
1 Parent(s): ca33577

Update image-text-demo.py

Browse files
Files changed (1) hide show
  1. image-text-demo.py +1 -1
image-text-demo.py CHANGED
@@ -48,7 +48,7 @@ class ImageSet(datasets.GeneratorBasedBuilder):
48
 
49
  def _generate_examples(self, images):
50
  """This function returns the examples in the raw (text) form."""
51
- id_ = 0
52
  for filepath, image in images:
53
  description = filepath.split('/')[-1][:-4]
54
  description = description.replace('_', ' ')
 
48
 
49
  def _generate_examples(self, images):
50
  """This function returns the examples in the raw (text) form."""
51
+ idx = 0
52
  for filepath, image in images:
53
  description = filepath.split('/')[-1][:-4]
54
  description = description.replace('_', ' ')