paroksh-mason commited on
Commit
6ba436d
1 Parent(s): 6cf309d

Adding gradio interface using stable diffusion pipeline

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from diffusers import StableDiffusionPipeline
2
+ import gradio as gr
3
+
4
+ pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
5
+
6
+ gr.Interface.from_pipeline(pipe).launch()