Spaces:
Sleeping
Sleeping
Commit History
-
Cache model weights in bucket for fast cold starts
343fd3b -
Use HF bucket for persistent data at /data
Bucket Creatiste/taste-data mounted at /data with DB, ratings, and reference images. Model cache goes to /tmp to avoid bucket writes.7edb895 -
Add Docker/HF Spaces deployment and fix security issues
- Dockerfile: multi-stage build (bun frontend + Python backend), CPU-only torch, serves everything on port 7860 for HF Spaces - FastAPI serves built frontend via StaticFiles + SPA catchall - Security: remove server filesystem paths from API responses, sanitize filenames on upload/image serving, prevent path traversal - Add fastapi, uvicorn, python-multipart to pyproject.toml deps - Support TASTE_DATA_DIR env var for container data directory34727e8