Note - This project is a work is progress
A Python web app build using Flask and Docker to remove backgrounds from images using the Rembg package.
This project is based off the code from Beyond Fireship's deploy serverless containers tutorial with a number of changes made to the html templates and css and a login system.
Local installation
- Download repository
- Navigate to the repository and create a virtual environment -
python3 -m venv rmbg-py
- Activate the virtual environment -
. rmgb-py/bin/activate
- Rename
example_config.py
toconfig.py
and update the SECRET_KEY variable (hint - usepython3 -c 'import secrets; print(secrets.token_hex())'
to generate a value for this variable) - Install dependencies with
pip install -e .
- Run app with
python app.py
and view it athttp://127.0.0.1:5100/