Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from einops import rearrange
|
|
7 |
from diffusers import FluxControlNetPipeline, FluxControlNetModel
|
8 |
from diffusers.utils import load_image
|
9 |
from gradio_imageslider import ImageSlider # Import ImageSlider
|
|
|
10 |
|
11 |
# Load the new ControlNet model
|
12 |
base_model = 'black-forest-labs/FLUX.1-dev'
|
|
|
7 |
from diffusers import FluxControlNetPipeline, FluxControlNetModel
|
8 |
from diffusers.utils import load_image
|
9 |
from gradio_imageslider import ImageSlider # Import ImageSlider
|
10 |
+
import cv2 # Import OpenCV for Canny edge detection
|
11 |
|
12 |
# Load the new ControlNet model
|
13 |
base_model = 'black-forest-labs/FLUX.1-dev'
|