Spaces:
Sleeping
Sleeping
Download Model.py from eriksarriegui/FishClassificator: direct link, hf CLI and curl.
- Browser
- Download file 281 Bytes
-
https://huggingface.co/spaces/eriksarriegui/FishClassificator/resolve/main/Model.py
- Command line
-
hf download hf://spaces/eriksarriegui/FishClassificator/Model.py
-
curl -L -o Model.py https://huggingface.co/spaces/eriksarriegui/FishClassificator/resolve/main/Model.py
281 Bytes
| from transformers import pipeline | |
| classifier = pipeline("image-classification", "JJNeila/fish_classification") | |
| class FishModel: | |
| def __init__(self): | |
| self.classifier = classifier | |
| def get_fish_species(self, image): | |
| return self.classifier(image) |