NawinCom commited on
Commit
2742d47
·
1 Parent(s): 36e11cd

Update CommyTesting.py

Browse files
Files changed (1) hide show
  1. CommyTesting.py +2 -2
CommyTesting.py CHANGED
@@ -71,7 +71,7 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
71
 
72
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
73
  def _generate_examples(self, images):
74
- # idx = 0
75
  for filepath, image in images:
76
  print(filepath)
77
  check = filepath.split('/')[-1].replace('.jpg', '')
@@ -79,4 +79,4 @@ class ImagesDemo(datasets.GeneratorBasedBuilder):
79
  "image" : {"path": filepath, "bytes": image.read()},
80
  "label" : dic[check]
81
  }
82
- # idx+=1
 
71
 
72
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
73
  def _generate_examples(self, images):
74
+ idx = 0
75
  for filepath, image in images:
76
  print(filepath)
77
  check = filepath.split('/')[-1].replace('.jpg', '')
 
79
  "image" : {"path": filepath, "bytes": image.read()},
80
  "label" : dic[check]
81
  }
82
+ idx+=1