Spaces:
Sleeping
Sleeping
Commit History
-
health: report taste_embedding population count
29d4bd7
-
add admin pull-db endpoint to sync DB from dataset repo
e433935 -
debug: add db info to health endpoint
a4a1f7f
-
Fix root path 404 β add explicit / route for SPA
d5eed46 -
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 -
Add Discover swipe page with async taste model updatesβ
Backend: - /api/discover/next β fetch unrated products sorted by score - /api/discover/rate β like/dislike/skip with DB persistence - /api/discover/stats β rating statistics - Liked products auto-added as taste references - Async taste model rebuild after 3+ new likes Frontend: - Tinder-style swipe cards with drag gestures - Like/dislike/skip buttons + keyboard shortcuts (βββ) - Animated card transitions - Live stats counter - Next card preview behind current Also fixes: Product type (price_text/price_nok), image endpoint path resolution, sidebar Discover nav link6241e51 -
Add web app: FastAPI backend + React/TS frontendβ
Backend (FastAPI): - /api/products β paginated, filterable, sortable product browsing - /api/ratings β CRUD for reference images (like/dislike/remove/upload) - /api/stats β dashboard stats - /api/scan β trigger scan with background polling - /api/images β serve reference images Frontend (React + TypeScript + Vite + Bun): - Browse page: product grid with store filters, search, sort, pagination - Profile page: manage reference images, upload, like/dislike/remove - Dashboard: stats cards, per-store table, scan trigger - Dark theme matching existing design language8d87873