Running Diffusers Image Outpaint Huggingface demo locally on a Mac

See demo here

Clone HuggingFace space locally

git clone https://huggingface.co/spaces/fffiloni/diffusers-image-outpaint

Create Virtual Environment and Install Dependencies

python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Update source to use mps backend

images/2024/09/19/1726741576.png

Run gradio application. It’ll take a little time to download all models required to run this space. If stuck then exit the process and try again. It should print a link to localhost to open the application.

venv/bin/gradio app.py