albertvillanova HF staff commited on
Commit
d49ae48
1 Parent(s): 483e1f2

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. mortars_test.py +0 -2
mortars_test.py CHANGED
@@ -1,7 +1,6 @@
1
  import os
2
 
3
  import datasets
4
- from datasets.tasks import ImageClassification
5
 
6
 
7
  _HOMEPAGE = ""
@@ -37,7 +36,6 @@ class MortarsTest(datasets.GeneratorBasedBuilder):
37
  supervised_keys=("image", "labels"),
38
  homepage=_HOMEPAGE,
39
  citation=_CITATION,
40
- task_templates=[ImageClassification(image_column="image", label_column="labels")],
41
  )
42
 
43
  def _split_generators(self, dl_manager):
 
1
  import os
2
 
3
  import datasets
 
4
 
5
 
6
  _HOMEPAGE = ""
 
36
  supervised_keys=("image", "labels"),
37
  homepage=_HOMEPAGE,
38
  citation=_CITATION,
 
39
  )
40
 
41
  def _split_generators(self, dl_manager):