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

Class DummyImageClassificationPipeline

tests/test_evaluator.py:82–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class DummyImageClassificationPipeline:
83 def __init__(self):
84 self.task = "image-classification"
85
86 def __call__(self, images, **kwargs):
87 return [[{"score": 0.9, "label": "yurt"}, {"score": 0.1, "label": "umbrella"}] for i, _ in enumerate(images)]
88
89
90class DummyQuestionAnsweringPipeline:

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…