File size: 279 Bytes
79e6176
1db95a3
79e6176
1db95a3
79e6176
 
ced0dbb
79e6176
 
1db95a3
79e6176
1db95a3
1
2
3
4
5
6
7
8
9
10
11
12
import torch
import gradio as gr
from diffusers import StableDiffusionPipeline

pipe = StableDiffusionPipeline.from_pretrained(
    "runwayml/stable-diffusion-v1-5",
    torch_dtype=torch.float32,
    use_safetensors=True,
)

demo = gr.Interface.from_pipeline(pipe)
demo.launch()