LBLong commited on
Commit
348cec3
·
verified ·
1 Parent(s): de2c019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -26,7 +26,6 @@ def detect_faces(image):
26
  for (x, y, w, h) in faces:
27
  cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 2)
28
 
29
- image = Image.open(image)
30
  label_out = pipe(image)
31
 
32
  return (image_np,im,label_out[0]['label'])
 
26
  for (x, y, w, h) in faces:
27
  cv2.rectangle(image_np, (x, y), (x+w, y+h), (0, 255, 0), 2)
28
 
 
29
  label_out = pipe(image)
30
 
31
  return (image_np,im,label_out[0]['label'])