Spaces:
Runtime error
Runtime error
Commit
·
3d45310
1
Parent(s):
ae95b99
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")
|
| 5 |
-
gr.Interface(
|
| 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")
|
| 5 |
+
gr.Interface(RetinaFace, inputs=inputs, outputs="image")
|
| 6 |
|
| 7 |
def RetinaFace(img):
|
| 8 |
faces = RetinaFace.extract_faces(img, align = True)
|