patrickramos commited on
Commit
ca67dd1
1 Parent(s): 25091d4

Upload conceptual_captions.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. conceptual_captions.py +2 -2
conceptual_captions.py CHANGED
@@ -32,11 +32,11 @@ class ConceptualCaptions(datasets.GeneratorBasedBuilder):
32
  )
33
 
34
  def _split_generators(self, dl_manager):
35
- dl_manager.download(_DATA_URL)
36
  return [
37
  datasets.SplitGenerator(
38
  name=datasets.Split.TRAIN,
39
- gen_kwargs={'file_path': '{00000..00331}.tar'}
40
  )
41
  ]
42
 
 
32
  )
33
 
34
  def _split_generators(self, dl_manager):
35
+ tars = dl_manager.download(_DATA_URL)
36
  return [
37
  datasets.SplitGenerator(
38
  name=datasets.Split.TRAIN,
39
+ gen_kwargs={'file_path': tars}
40
  )
41
  ]
42