system HF staff commited on
Commit
375b5d2
1 Parent(s): 91c9983

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. covid_qa_ucsd.py +1 -3
covid_qa_ucsd.py CHANGED
@@ -128,9 +128,7 @@ class CovidQaUcsd(datasets.GeneratorBasedBuilder):
128
 
129
  if not os.path.exists(path_to_manual_file):
130
  raise FileNotFoundError(
131
- "{} does not exist. Make sure the file is present in the directory specified in the data_dir specified in the input {} `datasets.load_dataset('covid_qa_ucsd', 'en', data_dir=...)`. Manual download instructions: {})".format(
132
- path_to_manual_file, dl_manager.manual_dir, self.manual_download_instructions
133
- )
134
  )
135
 
136
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": path_to_manual_file})]
 
128
 
129
  if not os.path.exists(path_to_manual_file):
130
  raise FileNotFoundError(
131
+ f"{path_to_manual_file} does not exist. Make sure the file is present in the directory specified in the data_dir specified in the input {dl_manager.manual_dir} `datasets.load_dataset('covid_qa_ucsd', 'en', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})"
 
 
132
  )
133
 
134
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": path_to_manual_file})]