Algorex's picture
Upload 4 files
d1e73f5 verified
|
Raw History Blame Contribute Delete
1.41 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: Background Swap Studio
emoji: 🎨
colorFrom: purple
colorTo: blue
sdk: gradio
app_file: app.py
pinned: false
license: apache-2.0

🎨 Background Swap Studio

Upload any image and instantly swap backgrounds with AI-powered presets!

ℹ️ Current Mode: Demo Version

This Space is running in Demo Mode on CPU (free tier). The UI demonstrates the full workflow with gradient overlay previews.

To unlock full AI-powered background swapping:

  • Go to Settings → Hardware
  • Upgrade to T4 GPU (~$0.60/hour)
  • Automatically enables real background removal + AI generation

Features

  • 12+ curated background presets (Studio White, Gradient Sunset, Nature Forest, Bokeh Lights, and more)
  • Custom background prompts supported
  • Fast and minimal interface
  • Beautiful gradient previews (demo mode) or AI-powered results (GPU mode)
  • Works with products, portraits, pets, and any objects

How to Use

  1. Upload your image
  2. Choose a background preset
  3. Click "Preview Background" (or "Swap Background" in GPU mode)
  4. View the result!

Tech Stack

Demo Mode (Current - CPU):

  • Gradio for the interface
  • PIL for image processing
  • Gradient overlay simulation

Production Mode (GPU Required):

  • RMBG-1.4 for background removal
  • Stable Diffusion 2 Inpainting for realistic backgrounds
  • Professional quality AI-generated results

Built with ❤️ using Gradio