albertvillanova HF staff commited on
Commit
43b2da0
1 Parent(s): 9f8157c

Remove deprecated tasks

Browse files

This dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999

Files changed (1) hide show
  1. peoples_speech.py +0 -2
peoples_speech.py CHANGED
@@ -16,7 +16,6 @@ import json
16
  import os
17
 
18
  import datasets
19
- from datasets.tasks import AutomaticSpeechRecognition
20
  from tqdm.auto import tqdm
21
 
22
 
@@ -106,7 +105,6 @@ class PeoplesSpeech(datasets.GeneratorBasedBuilder):
106
  "text": datasets.Value("string"),
107
  }
108
  ),
109
- task_templates=[AutomaticSpeechRecognition()],
110
  homepage=_HOMEPAGE,
111
  license="/".join(_LICENSE), # license must be a string
112
  citation=_CITATION,
 
16
  import os
17
 
18
  import datasets
 
19
  from tqdm.auto import tqdm
20
 
21
 
 
105
  "text": datasets.Value("string"),
106
  }
107
  ),
 
108
  homepage=_HOMEPAGE,
109
  license="/".join(_LICENSE), # license must be a string
110
  citation=_CITATION,