MrLight commited on
Commit
b858392
1 Parent(s): 6d72368

Update wikipedia-nq.py

Browse files
Files changed (1) hide show
  1. wikipedia-nq.py +1 -1
wikipedia-nq.py CHANGED
@@ -90,7 +90,7 @@ class WikipediaNq(datasets.GeneratorBasedBuilder):
90
  datasets.SplitGenerator(
91
  name=split,
92
  gen_kwargs={
93
- "filepath": downloaded_files[split],
94
  },
95
  ) for split in downloaded_files
96
  ]
 
90
  datasets.SplitGenerator(
91
  name=split,
92
  gen_kwargs={
93
+ "files": [downloaded_files[split]] if isinstance(downloaded_files[split], str) else downloaded_files[split],
94
  },
95
  ) for split in downloaded_files
96
  ]