jamescalam commited on
Commit
a708c87
1 Parent(s): 51e9f8c

Update image-text-demo.py

Browse files
Files changed (1) hide show
  1. image-text-demo.py +2 -2
image-text-demo.py CHANGED
@@ -36,8 +36,8 @@ class ImageSet(datasets.GeneratorBasedBuilder):
36
  )
37
 
38
  def _split_generators(self, dl_manager):
39
- images_path = dl_manager.download(f"{_REPO}/resolve/main/images.tgz")
40
- image_iters = dl_manager.iter_archive(f"{images_path}/images")
41
  return [
42
  datasets.SplitGenerator(
43
  name=datasets.Split.TRAIN,
 
36
  )
37
 
38
  def _split_generators(self, dl_manager):
39
+ images_archive = dl_manager.download(f"{_REPO}/resolve/main/images.tgz")
40
+ image_iters = dl_manager.iter_archive(images_archive)
41
  return [
42
  datasets.SplitGenerator(
43
  name=datasets.Split.TRAIN,