nielsr HF staff commited on
Commit
ccdec0a
1 Parent(s): 3526e52

Update cats-image.py

Browse files
Files changed (1) hide show
  1. cats-image.py +2 -2
cats-image.py CHANGED
@@ -86,9 +86,9 @@ class CatsImage(datasets.GeneratorBasedBuilder):
86
 
87
  def _generate_examples(self, archive_path):
88
  """Generate examples."""
89
- for i, filename in enumerate(archive_path):
90
  image = Image.open(filename)
91
  example = {
92
  "image": image,
93
  }
94
- yield example
86
 
87
  def _generate_examples(self, archive_path):
88
  """Generate examples."""
89
+ for idx, filename in enumerate(archive_path):
90
  image = Image.open(filename)
91
  example = {
92
  "image": image,
93
  }
94
+ yield idx, example