system HF staff commited on
Commit
efdb368
1 Parent(s): 2daf12c

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. kannada_news.py +1 -3
kannada_news.py CHANGED
@@ -79,9 +79,7 @@ class KannadaNews(datasets.GeneratorBasedBuilder):
79
 
80
  if not os.path.exists(path_to_manual_file):
81
  raise FileNotFoundError(
82
- "{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('kannada_news', data_dir=...)` that includes a file name {}. Manual download instructions: {})".format(
83
- path_to_manual_file, _TRAIN_FILENAME, self.manual_download_instructions
84
- )
85
  )
86
  return [
87
  datasets.SplitGenerator(
 
79
 
80
  if not os.path.exists(path_to_manual_file):
81
  raise FileNotFoundError(
82
+ f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('kannada_news', data_dir=...)` that includes a file name {_TRAIN_FILENAME}. Manual download instructions: {self.manual_download_instructions})"
 
 
83
  )
84
  return [
85
  datasets.SplitGenerator(