albertvillanova HF staff commited on
Commit
8410af9
·
verified ·
1 Parent(s): 8f9237c

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. beans.py +0 -6
beans.py CHANGED
@@ -17,7 +17,6 @@
17
  from pathlib import Path
18
 
19
  import datasets
20
- from datasets.tasks import ImageClassification
21
 
22
 
23
  _HOMEPAGE = "https://github.com/AI-Lab-Makerere/ibean/"
@@ -64,11 +63,6 @@ class Beans(datasets.GeneratorBasedBuilder):
64
  supervised_keys=("image_file_path", "labels"),
65
  homepage=_HOMEPAGE,
66
  citation=_CITATION,
67
- task_templates=[
68
- ImageClassification(
69
- image_file_path_column="image_file_path", label_column="labels", labels=sorted(tuple(_NAMES))
70
- )
71
- ],
72
  )
73
 
74
  def _split_generators(self, dl_manager):
 
17
  from pathlib import Path
18
 
19
  import datasets
 
20
 
21
 
22
  _HOMEPAGE = "https://github.com/AI-Lab-Makerere/ibean/"
 
63
  supervised_keys=("image_file_path", "labels"),
64
  homepage=_HOMEPAGE,
65
  citation=_CITATION,
 
 
 
 
 
66
  )
67
 
68
  def _split_generators(self, dl_manager):