| 80 | |
| 81 | |
| 82 | class 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 | |
| 90 | class DummyQuestionAnsweringPipeline: |