albertvillanova HF staff commited on
Commit
a3df910
1 Parent(s): f4c8f95

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. rvl_cdip.py +0 -2
rvl_cdip.py CHANGED
@@ -18,7 +18,6 @@
18
  import os
19
 
20
  import datasets
21
- from datasets.tasks import ImageClassification
22
 
23
 
24
  _CITATION = """\
@@ -92,7 +91,6 @@ class RvlCdip(datasets.GeneratorBasedBuilder):
92
  homepage=_HOMEPAGE,
93
  citation=_CITATION,
94
  license=_LICENSE,
95
- task_templates=[ImageClassification(image_column="image", label_column="label")],
96
  )
97
 
98
  def _split_generators(self, dl_manager):
 
18
  import os
19
 
20
  import datasets
 
21
 
22
 
23
  _CITATION = """\
 
91
  homepage=_HOMEPAGE,
92
  citation=_CITATION,
93
  license=_LICENSE,
 
94
  )
95
 
96
  def _split_generators(self, dl_manager):