Remove deprecated tasks (#1)
Browse files- Remove deprecated tasks (92d257b6a41967c23b186742d60839e1bdcfc125)
whisper_adversarial_examples.py
CHANGED
|
@@ -20,7 +20,6 @@
|
|
| 20 |
import os
|
| 21 |
|
| 22 |
import datasets
|
| 23 |
-
from datasets.tasks import AutomaticSpeechRecognition
|
| 24 |
|
| 25 |
|
| 26 |
_DESCRIPTION = """\
|
|
@@ -106,7 +105,6 @@ class AdvWhisperASR(datasets.GeneratorBasedBuilder):
|
|
| 106 |
}
|
| 107 |
),
|
| 108 |
supervised_keys=("file", "text"),
|
| 109 |
-
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
|
| 110 |
)
|
| 111 |
|
| 112 |
def _split_generators(self, dl_manager):
|
|
|
|
| 20 |
import os
|
| 21 |
|
| 22 |
import datasets
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
_DESCRIPTION = """\
|
|
|
|
| 105 |
}
|
| 106 |
),
|
| 107 |
supervised_keys=("file", "text"),
|
|
|
|
| 108 |
)
|
| 109 |
|
| 110 |
def _split_generators(self, dl_manager):
|