crbns/drestly-image-processing
0
Image Processing
Background-removal API for clothing items. A FastAPI service that pulls an uploaded image from Supabase Storage, runs `rembg` (BiRefNet birefnet-general-lite) to cut out the garment, writes the transparent PNG back to storage, and updates the item row.
Endpoints
/process validates the caller's Supabase JWT (auth.py), confirms the user owns the clothing_items row, then runs the cutout in a background task.
Environment variables
Running locally
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 7860The container (Dockerfile) installs deps, pre-downloads the BiRefNet model, and serves uvicorn on port 7860 — the default Space port.
