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

Method __call__

tests/test_evaluator.py:137–138  ·  view source on GitHub ↗
(self, audio, **kwargs)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected