44brabal's picture
Update app.py
4a6e885
raw
history blame
410 Bytes
import gradio as gr
gr.Interface.load("models/runwayml/stable-diffusion-v1-5").launch()
pip install diffusers["torch"] transformers
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline
controlnet = ControlNetModel.from_pretrained("monster-labs/control_v1p_sd15_qrcode_monster")
pipeline = StableDiffusionControlNetPipeline.from_pretrained(
"fill-in-base-model", controlnet=controlnet
)