Spaces:
Runtime error
Runtime error
Commit
·
8f62096
1
Parent(s):
0e9fe08
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import RetinaFace
|
| 3 |
|
| 4 |
inputs = gr.inputs.Image(shape=(800, 600), source="upload", type='file')
|
| 5 |
-
gr.Interface(fn=RetinaFace, inputs=inputs, outputs="
|
| 6 |
|
| 7 |
def RetinaFace(img):
|
| 8 |
faces = RetinaFace.extract_faces(img, align = True)
|
|
|
|
| 2 |
import RetinaFace
|
| 3 |
|
| 4 |
inputs = gr.inputs.Image(shape=(800, 600), source="upload", type='file')
|
| 5 |
+
gr.Interface(fn=RetinaFace, inputs=inputs, outputs="image", title ="RetinaFace").launch(inbrowser= True)
|
| 6 |
|
| 7 |
def RetinaFace(img):
|
| 8 |
faces = RetinaFace.extract_faces(img, align = True)
|