Spaces:
Runtime error
Runtime error
Commit
·
897fed4
1
Parent(s):
3d45310
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
import RetinaFace
|
3 |
|
4 |
-
inputs = gr.inputs.Image(shape=(800, 600), source="upload")
|
5 |
-
gr.Interface(RetinaFace, inputs=inputs, outputs="image")
|
6 |
-
|
7 |
def RetinaFace(img):
|
8 |
faces = RetinaFace.extract_faces(img, align = True)
|
9 |
return faces[0]
|
10 |
|
|
|
|
|
11 |
|
12 |
|
13 |
|
|
|
1 |
import gradio as gr
|
2 |
import RetinaFace
|
3 |
|
|
|
|
|
|
|
4 |
def RetinaFace(img):
|
5 |
faces = RetinaFace.extract_faces(img, align = True)
|
6 |
return faces[0]
|
7 |
|
8 |
+
inputs = gr.inputs.Image(shape=(800, 600), source="upload")
|
9 |
+
gr.Interface(RetinaFace, inputs=inputs, outputs="image")
|
10 |
|
11 |
|
12 |
|