Spaces:
Runtime error
Runtime error
Commit
·
8cba427
1
Parent(s):
efd072b
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import RetinaFace
|
|
4 |
gr.Interface(fn=RetinaFace, inputs=gr.inputs.Image(shape=(800, 600), source="upload", type='file'), outputs="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True)
|
5 |
|
6 |
def RetinaFace(img):
|
7 |
-
faces = RetinaFace.extract_faces(
|
8 |
return faces[0]
|
9 |
|
10 |
|
|
|
4 |
gr.Interface(fn=RetinaFace, inputs=gr.inputs.Image(shape=(800, 600), source="upload", type='file'), outputs="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True)
|
5 |
|
6 |
def RetinaFace(img):
|
7 |
+
faces = RetinaFace.extract_faces(img, align = True)
|
8 |
return faces[0]
|
9 |
|
10 |
|