system HF staff commited on
Commit
c5cda1f
1 Parent(s): 5556433

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. times_of_india_news_headlines.py +1 -3
times_of_india_news_headlines.py CHANGED
@@ -74,9 +74,7 @@ class TimesOfIndiaNewsHeadlines(datasets.GeneratorBasedBuilder):
74
  path_to_manual_file = os.path.join(os.path.abspath(os.path.expanduser(dl_manager.manual_dir)), _FILENAME)
75
  if not os.path.exists(path_to_manual_file):
76
  raise FileNotFoundError(
77
- "{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('times_of_india_news_headlines', data_dir=...)` that includes a file name {}. Manual download instructions: {})".format(
78
- path_to_manual_file, _FILENAME, self.manual_download_instructions
79
- )
80
  )
81
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
82
 
74
  path_to_manual_file = os.path.join(os.path.abspath(os.path.expanduser(dl_manager.manual_dir)), _FILENAME)
75
  if not os.path.exists(path_to_manual_file):
76
  raise FileNotFoundError(
77
+ f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('times_of_india_news_headlines', data_dir=...)` that includes a file name {_FILENAME}. Manual download instructions: {self.manual_download_instructions})"
 
 
78
  )
79
  return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"path": path_to_manual_file})]
80