Download src/interface.py from UNIQ-DEV/Image-Classification-Benchmark: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/UNIQ-DEV/Image-Classification-Benchmark/resolve/cd8cf017ec83d5becf02b274bf7e30fb5e771349/src/interface.py
- Command line
-
hf download hf://spaces/UNIQ-DEV/Image-Classification-Benchmark@cd8cf017ec83d5becf02b274bf7e30fb5e771349/src/interface.py
-
curl -L -o interface.py https://huggingface.co/spaces/UNIQ-DEV/Image-Classification-Benchmark/resolve/cd8cf017ec83d5becf02b274bf7e30fb5e771349/src/interface.py
248 Bytes
| from .data.classification_result import ClassificationResult | |
| from abc import ABC, abstractmethod | |
| from typing import List | |
| class ModelInterface(ABC): | |
| def classify_image(self, image) -> List[ClassificationResult]: | |
| pass |