Spaces:
Sleeping
Sleeping
Commit History
-
add Shop the look outfit composition
- taste/outfits.py: pairing rules per anchor bucket (dress→shoes+bag+outerwear, top→bottom+shoes+bag, etc.) picks top-scored in-stock complement per bucket, deduped by (brand, name) to avoid variant spam - GET /api/products/outfit?url= returns anchor + complements + total - frontend OutfitModal: hover "Shop the look" pill on each pairable card, opens a dark modal with the curated edit and run-totala9fc7b2
-
add 5 new store scrapers, category filtering, per-category taste scoring
Scrapers: Zalando (hydration data), COS (Centra/__NEXT_DATA__), & Other Stories (__NEXT_DATA__), Ellos (Nuxt 3 payload), Nelly (Voyado Elevate API). All use curl_cffi or httpx as needed. Expand all stores to full women's clothing categories (dresses, tops, jackets, trousers, skirts, knitwear, shoes, bags). Add category filter UI with multilingual pattern matching backend and pill bar in browse page. Implement per-category taste scoring: build separate centroids per category, score products against their own category's centroids, fall back to unified for unseen categories. Experimentally validated 1.3-2.3x better within-category discrimination.7dcb597 -
add browse filters: brand, price range, quick presets
Backend: min_price/max_price params, /brands and /price-range endpoints. Frontend: collapsible filter panel with brand dropdown, price range inputs, quick price preset pills, and clear-all button.1a74100
-
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 -
Improve Discover page interactions and taste feedback
- Card click opens store page (no more click-to-swipe) - Drag gesture only triggers on actual movement (>5px threshold) - Added undo button (+ Ctrl+Z keyboard shortcut) - Match % badge on each card (green/blue/amber by score) - Store badge and "tap to view" hint - Backend: undo endpoint reverts rating + taste model - Backend: dislikes now saved to taste model (was likes-only) - Backend: startup sync ensures all discover ratings reflected - Backend: rescore now rescores ALL products (not just low scores)1607a5a -
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