Spaces:
Runtime error
Runtime error
Commit
·
2689406
1
Parent(s):
2b57f68
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,11 @@ import RetinaFace
|
|
4 |
def RetinaFace(img):
|
5 |
faces = RetinaFace.extract_faces(img, align = True)
|
6 |
return faces[0]
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
10 |
|
11 |
|
12 |
|
|
|
4 |
def RetinaFace(img):
|
5 |
faces = RetinaFace.extract_faces(img, align = True)
|
6 |
return faces[0]
|
7 |
+
|
8 |
+
|
9 |
+
inputs = gr.inputs.Image(type="filepath")
|
10 |
+
examples=[['Rdj.jpg']]
|
11 |
+
gr.Interface(fn=RetinaFace, inputs=inputs, outputs="plot", title="RetinaFace",examples=examples).launch(inbrowser=True)
|
12 |
|
13 |
|
14 |
|