Create .py
Browse files
.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 |
+
)
|