sehaj13 commited on
Commit
698d655
·
verified ·
1 Parent(s): ac0d02e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def detect_faces(image_np,slider):
18
  for (x, y, w, h) in faces:
19
  cv2.rectangle(image_np, (x, y), (x + w, y + h), (0, 255, 0), 2)
20
 
21
- return image_np
22
 
23
  # Create Gradio Interface
24
  iface = gr.Interface(
 
18
  for (x, y, w, h) in faces:
19
  cv2.rectangle(image_np, (x, y), (x + w, y + h), (0, 255, 0), 2)
20
 
21
+ return image_np, len(faces)
22
 
23
  # Create Gradio Interface
24
  iface = gr.Interface(