Spaces:
Sleeping
Sleeping
Download render.yaml from fmbishu/image-search-api: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/fmbishu/image-search-api/resolve/main/render.yaml
- Command line
-
hf download hf://spaces/fmbishu/image-search-api/render.yaml
-
curl -L -o render.yaml https://huggingface.co/spaces/fmbishu/image-search-api/resolve/main/render.yaml
1.12 kB
| # Render deployment configuration for Image Search API (Free Tier Optimized) | |
| services: | |
| - type: web | |
| name: image-search-api | |
| env: python | |
| plan: free | |
| buildCommand: | | |
| pip install --upgrade pip | |
| pip install -r requirements-free.txt | |
| startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT --workers 1 | |
| envVars: | |
| - key: PYTHON_VERSION | |
| value: 3.11 | |
| - key: INDEX_TYPE | |
| value: "HNSW" | |
| - key: TOPK_DEFAULT | |
| value: "5" | |
| - key: ENABLE_ADVANCED_RERANKING | |
| value: "false" | |
| - key: ENABLE_DIVERSITY_PENALTY | |
| value: "false" | |
| - key: ENABLE_QUERY_EXPANSION | |
| value: "false" | |
| - key: ENABLE_AUTO_MONITOR | |
| value: "false" | |
| - key: MONITOR_INTERVAL | |
| value: "300" | |
| - key: RENDER | |
| value: "true" | |
| # Optional: Use smaller model for free tier (default: clip-ViT-L-14) | |
| # Uncomment to use smaller model: clip-ViT-B-32 | |
| # - key: CLIP_MODEL_NAME | |
| # value: "clip-ViT-B-32" | |
| healthCheckPath: /health | |
| disk: | |
| name: image-search-data | |
| mountPath: /app/data | |
| sizeGB: 1 | |