Download docker-compose.yml from neev2211/arabic-native-classifier: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/neev2211/arabic-native-classifier/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/neev2211/arabic-native-classifier/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/neev2211/arabic-native-classifier/resolve/main/docker-compose.yml
1.25 kB
| # ============================================================ | |
| # Arabic Nativity Classifier — Docker Compose | |
| # ============================================================ | |
| # Usage: | |
| # docker compose up --build (build + start) | |
| # docker compose up -d (detached / background) | |
| # docker compose logs -f webapp (tail logs) | |
| # docker compose down (stop + remove) | |
| # ============================================================ | |
| services: | |
| webapp: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: nativity-classifier | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| # Set to "cuda" if running with nvidia-docker; default is cpu | |
| - DEVICE=cpu | |
| volumes: | |
| # Mount models dir so you can swap models without rebuilding | |
| - ./models:/app/models:ro | |
| # Persist uploaded temp files (optional) | |
| - nativity_uploads:/app/webapp/uploads | |
| restart: unless-stopped | |
| # Uncomment below for GPU support (requires nvidia-container-toolkit) | |
| # deploy: | |
| # resources: | |
| # reservations: | |
| # devices: | |
| # - driver: nvidia | |
| # count: 1 | |
| # capabilities: [gpu] | |
| volumes: | |
| nativity_uploads: | |