aiunivers commited on
Commit
1737fc8
·
verified ·
1 Parent(s): 03f3a75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from PIL import Image
3
- from controlnet_aux.openpose import OpenposeDetector
4
  from controlnet_aux.depth_anything import DepthAnythingDetector
5
 
6
  # Load models once at startup
@@ -10,7 +10,7 @@ depth = DepthAnythingDetector.from_pretrained("depth-anything/Depth-Anything-V2"
10
  def process(image: Image.Image):
11
  image = image.convert("RGB")
12
 
13
- # Both options kept True inside the code
14
  result_openpose = openpose(image)
15
  result_depth = depth(image)
16
 
 
1
  import gradio as gr
2
  from PIL import Image
3
+ from controlnet_aux.open_pose import OpenposeDetector # <- fixed import
4
  from controlnet_aux.depth_anything import DepthAnythingDetector
5
 
6
  # Load models once at startup
 
10
  def process(image: Image.Image):
11
  image = image.convert("RGB")
12
 
13
+ # Run both detectors
14
  result_openpose = openpose(image)
15
  result_depth = depth(image)
16