Spaces:
Runtime error
Runtime error
Download app.py from botware/MakeImgArt-Diffusion15: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/botware/MakeImgArt-Diffusion15/resolve/main/app.py
- Command line
-
hf download hf://spaces/botware/MakeImgArt-Diffusion15/app.py
-
curl -L -o app.py https://huggingface.co/spaces/botware/MakeImgArt-Diffusion15/resolve/main/app.py
287 Bytes
| import torch | |
| from diffusers import StableDiffusionPipeline | |
| pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") | |
| #for GPU driver | |
| #pipe.to("cuda") | |
| prompt = "a photograph of an astronaut riding a horse" | |
| image = pipe(prompt, height=1080, width=1080).images[0] |