Instructions to use Yoran-w/mlops-animals-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Yoran-w/mlops-animals-classification with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Yoran-w/mlops-animals-classification") - Notebooks
- Google Colab
- Kaggle
Download Docker-compose.yaml from Yoran-w/mlops-animals-classification: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/Docker-compose.yaml
- Command line
-
hf download hf://Yoran-w/mlops-animals-classification/Docker-compose.yaml
-
curl -L -o Docker-compose.yaml https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/Docker-compose.yaml
335 Bytes
| services: | |
| animal-api: | |
| build: . | |
| container_name: animal-api | |
| ports: | |
| - "8000:8000" # Expose FastAPI port | |
| volumes: | |
| - ./animal-classification:/app/animal-classification # Mount model folder | |
| environment: | |
| - MODEL_PATH=/app/animal-classification/INPUT_model_path/animal-cnn | |
| restart: unless-stopped |