Spaces:
Running
Running
Migrate to Bria v2 Eraser API + Bria-branded UI redesign
#3
by assaomri - opened
What
Updates the demo to call the Bria v2 Eraser endpoint and refreshes the UI to match the Bria brand.
API migration (v1 → v2)
- Endpoint
\/v1\/eraser→https:\/\/engine.prod.bria-api.com\/v2\/image\/edit\/erase - Params
file/mask_file→image/mask, addedsync: true - Result read from
result.image_url(wasresult_url) - Dropped the v1 base64 comma-prefix hack; added error handling and friendly guards (no image / no brush strokes)
UI redesign
- Bria brand theme (purple
#5300C9+ magenta accent), header with the Bria logo, "step 1-2-3" guide, gradient Erase button, branded footer, light/dark support - Logo bundled as
bria_logo.pngand embedded as a data URI (no external CDN dependency)
Build
- Slimmed
requirements.txt(removed unused torch/diffusers/transformers left over from the old local-model version) for much faster Space builds - Kept
pydantic==2.10.6pinned (required — newer pydantic breaks Gradio 5.9.0 schema generation)
Verified by running the Space locally and rendering the new UI.
🤖 Generated with Claude Code
assaomri changed pull request status to merged
hi
hello
i am from India
and you
assaomri deleted the
refs/pr/3 ref