Spaces:
Sleeping
Sleeping
File size: 1,121 Bytes
4e4132f c6ddac7 4e4132f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # 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
|