Spaces:
Build error
Build error
Commit History
-
Delete app.py
Verified signatureimport gradio as gr import torch import numpy as np import cv2 from PIL import Image from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, StableDiffusionImg2ImgPipeline, ) device = "cuda" if torch.cuda.is_available() else "cpu" # Load ControlNet (keeps structure) controlnet = ControlNetModel.from_pretrained( "lllyasviel/sd-controlnet-canny", torch_dtype=torch.float32 ) pipe_control = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float32, ) pipe_control = pipe_control.to(device) # Load Img2Img (makes it realistic) pipe_img2img = StableDiffusionImg2ImgPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", torch_dtype=torch.float32, ) pipe_img2img = pipe_img2img.to(device) def process(image, prompt): # Convert to edges (structure) img = np.array(image) edges = cv2.Canny(img, 100, 200) edges = np.stack([edges]*3, axis=2)…9d0e412
-
Update
40d380f
-
Update
ef5a142
-
gradio==5.6.0
753523a -
Update
837d8ee
-
Update settings.py
Verified signatureac63dd2
-
Update
de3d9dc -
Update
1d22eb8 -
Update
a6d82aa -
Update
3f0b2d3 -
Update
074f54b -
Migrate from yapf to black
f521e88
-
Update
89efab8 -
Update
050ca2a -
Update
e4d01a7 -
Update
1420de7
-
Update
4a987c3
-
Update
4e985c3 -
Update
3dea1c9 -
Update
d6252d0 -
Update
681c919 -
Update
3ed6fe2 -
Update
3c4344e -
Update
06d6d46 -
Update
d5479f6 -
Update
566c28a -
Update
21e6a9b -
Update
d3f1a0c -
Update
8ae4526 -
Update
afddbfd -
Update
bbf85db -
Update
84448a9 -
Update
ea1552f -
Update
424ab4a -
Update
742052e -
Update
208f8fb
-
Add notebook
612eee7 -
Fix api_name
043bac9 -
Update requirements.txt
5e1c8bc -
Increase the max queue size
319fa2a -
Update
ae34a8d
-
Add suggested_hardware
60c1762
-
gradio==3.34.0
9e37353
-
Update
53b39de
-
Update the depth model path
722aab8 -
Update requirements.txt
d0b66ef
-
Add files
a660631 -
initial commit
65600c1