Deadmon commited on
Commit
68bcf92
1 Parent(s): e7f1db3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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'