44brabal commited on
Commit
693777f
Β·
1 Parent(s): 6f22d4a

Create .py

Browse files
Files changed (1) hide show
  1. .py +8 -0
.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
4
+
5
+ controlnet = ControlNetModel.from_pretrained("monster-labs/control_v1p_sd15_qrcode_monster")
6
+ pipeline = StableDiffusionControlNetPipeline.from_pretrained(
7
+ "fill-in-base-model", controlnet=controlnet
8
+ )