Migrate to Bria v2 Eraser API + Bria-branded UI redesign

#3
BRIA AI org

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, added sync: true
  • Result read from result.image_url (was result_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.png and 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.6 pinned (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
BRIA AI org

hello

i am from India

and you

assaomri deleted the refs/pr/3 ref

Sign up or log in to comment