MCPcopy Create free account
hub / github.com/huggingface/evaluate / DummyAudioClassificationPipeline

Class DummyAudioClassificationPipeline

tests/test_evaluator.py:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133class DummyAudioClassificationPipeline:
134 def __init__(self):
135 self.task = "audio-classification"
136
137 def __call__(self, audio, **kwargs):
138 return [[{"score": 0.9, "label": "yes"}, {"score": 0.1, "label": "no"}] for i, _ in enumerate(audio)]
139
140
141class TestEvaluator(TestCase):

Callers 1

setUpMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…