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

Method __init__

tests/test_evaluator.py:134–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected