Instructions to use AustinL/CatvsDog with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AustinL/CatvsDog with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AustinL/CatvsDog", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download helpers.py from AustinL/CatvsDog: direct link, hf CLI and curl.
- Browser
- Download file 76 Bytes
-
https://huggingface.co/AustinL/CatvsDog/resolve/main/helpers.py
- Command line
-
hf download hf://AustinL/CatvsDog/helpers.py
-
curl -L -o helpers.py https://huggingface.co/AustinL/CatvsDog/resolve/main/helpers.py
76 Bytes
| # Custom code used by the model. | |
| def is_cat(x): | |
| return x[0].isupper() | |