Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from torch_mtcnn import detect_faces
|
|
14 |
from torch_mtcnn import show_bboxes
|
15 |
|
16 |
# pipeline = pipeline(task="image-classification", model="njgroene/fairface")
|
17 |
-
def pipeline(
|
18 |
bounding_boxes, landmarks = detect_faces(img)
|
19 |
|
20 |
img_cropped = img.crop(bb)
|
|
|
14 |
from torch_mtcnn import show_bboxes
|
15 |
|
16 |
# pipeline = pipeline(task="image-classification", model="njgroene/fairface")
|
17 |
+
def pipeline(img):
|
18 |
bounding_boxes, landmarks = detect_faces(img)
|
19 |
|
20 |
img_cropped = img.crop(bb)
|