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 Dockerfile from Yoran-w/mlops-animals-classification: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/Dockerfile
- Command line
-
hf download hf://Yoran-w/mlops-animals-classification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/Yoran-w/mlops-animals-classification/resolve/main/Dockerfile
237 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --default-timeout=300 --retries 5 --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |