File size: 322 Bytes
31ad934
a3d34bc
 
31ad934
 
 
a3d34bc
 
1
2
3
4
5
6
7
8
from diffusers import StableDiffusionPipeline, StableDiffusionUpscalePipeline
import gradio as gr

# pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
pipe = StableDiffusionUpscalePipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler")


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