bgrem / README.md
viruthik's picture
Update README.md
de1d7f9

A newer version of the Streamlit SDK is available: 1.52.2

Upgrade
metadata
title: Streamlit Background Removal App
emoji: 🎨
colorFrom: yellow
colorTo: blue
sdk: streamlit
sdk_version: 0.79.0
app_file: app.py
pinned: false
python_version: '3.10'

Streamlit Background Removal App

This Streamlit app allows you to upload an image and removes its background using the rembg library.

Prerequisites

  • Python 3.7 or later
  • pip (Python package installer)

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/your-repository.git
    
  2. Navigate to the project directory:

    cd your-repository
    
  3. Install the required packages:

    pip install -r requirements.txt
    

Running the App

Execute the following command to run the Streamlit app:

streamlit run app.py

Visit the URL displayed in the terminal to interact with the app.

Usage
Upload an image by clicking the "Choose a file" button.
View the original image and the image with the background removed.
File Structure
app.py: The main Streamlit app file.
static/uploads/: Directory to store uploaded images.
requirements.txt: List of required Python packages.
Troubleshooting
If you encounter any issues, ensure that you have the necessary dependencies installed and that you are using Python 3.10 or later.


Make sure to replace `"https://github.com/your-username/your-repository.git"` with the actual URL of your GitHub repository. Adjust the Streamlit version and other details based on your specific configuration and preferences.