alkzar90 commited on
Commit
8103bf2
1 Parent(s): 7e19fce

return dataset lists as iter(dataset_lists)

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +2 -2
NIH-Chest-X-ray-dataset.py CHANGED
@@ -119,14 +119,14 @@ class XChest(datasets.GeneratorBasedBuilder):
119
  datatsets.SplitGenerator(
120
  name=datasets.Split.TRAIN,
121
  gen_kwargs={
122
- 'files': pass
123
  }
124
 
125
  ),
126
  datasets.SplitGenerator(
127
  name=datasets.Split.TEST,
128
  gen_kwargs={
129
- 'files': pass
130
  }
131
  )
132
  ]
 
119
  datatsets.SplitGenerator(
120
  name=datasets.Split.TRAIN,
121
  gen_kwargs={
122
+ 'files': iter(train_files)
123
  }
124
 
125
  ),
126
  datasets.SplitGenerator(
127
  name=datasets.Split.TEST,
128
  gen_kwargs={
129
+ 'files': iter(test_files)
130
  }
131
  )
132
  ]