This project generates what people want to see using a stable diffusion model and can send it to their email.
1. Download repository
git clone https://github.com/Omunkhuush/stable-diffusion-v1.4-API-with-flask.git
2. Install the Pytorch version that matches your Cuda version from Pytorch all release.
3. Install requirements
cd stable-diffusion-v1.4-API-with-flask
pip install -r requirement.txt
- Sign up and Sign in to Hugging face
- Click to Profile --> Settings --> Access Tokens
- click to New token
- Give it the name you want
- set role to write
- Copy the generated access token
- Clict to Manage your Google Account on the browser.
- Click to Settings
- Turn on 2-Step Verification
- Scroll down and click to App passwords
- set Select app to other (custom name)
- Give it the name you want
- Copy the generated App password
After obtaining the access tokens, make the necessary changes to the env file.
python App.py
