sarwansingh commited on
Commit
e2846a4
·
verified ·
1 Parent(s): aa7ee12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,10 +18,10 @@ def detect_faces(image , slider ) :
18
 
19
  return image_np
20
 
21
- slider = gr.Slider(minimum=1, maximum=2, step=.1, label="Adjust the ScaleFactor")
22
 
23
  iface = gr.Interface( fn=detect_faces,
24
- inputs=["image","slider"],
25
  outputs="image",
26
  title="Face Detection using Haar Cascade Classifier ",
27
  description="Upload an image,and the model will detect faces and draw bounding boxes around them.",
 
18
 
19
  return image_np
20
 
21
+ # slider = gr.Slider(minimum=1, maximum=2, step=.1, label="Adjust the ScaleFactor")
22
 
23
  iface = gr.Interface( fn=detect_faces,
24
+ inputs=["image",gr.Slider(minimum=1, maximum=2, step=.1, label="Adjust the ScaleFactor")],
25
  outputs="image",
26
  title="Face Detection using Haar Cascade Classifier ",
27
  description="Upload an image,and the model will detect faces and draw bounding boxes around them.",