Susmita1302 commited on
Commit
dc7a8aa
·
verified ·
1 Parent(s): 62b8418

Update imagedemo.py

Browse files
Files changed (1) hide show
  1. imagedemo.py +9 -9
imagedemo.py CHANGED
@@ -452,14 +452,14 @@ class imagedemo(datasets.GeneratorBasedBuilder):
452
 
453
  ]
454
 
455
- def _generate_examples(self,images):
456
- """This function returns the examples in the raw (text) form."""
457
- idx = 0
458
- #iterate through images
459
- for filepath, image in images:
460
- yield idx, {
461
- "image": {"filepath": filepath, "image": image.read()},
 
 
462
 
463
- }
464
- idx +=1
465
 
 
452
 
453
  ]
454
 
455
+ def _generate_examples(self, images):
456
+ """This function returns the examples in the raw (text) form."""
457
+ idx = 0
458
+ # Iterate through images
459
+ for filepath, image in images:
460
+ yield idx, {
461
+ "image": {"filepath": filepath, "image": image.read()},
462
+ }
463
+ idx += 1
464
 
 
 
465