Spaces:
Runtime error
Runtime error
Commit
·
aa7cca8
1
Parent(s):
8cba427
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import RetinaFace
|
| 3 |
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
def RetinaFace(img):
|
| 7 |
faces = RetinaFace.extract_faces(img, align = True)
|
|
|
|
| 1 |
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="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True)
|
| 6 |
|
| 7 |
def RetinaFace(img):
|
| 8 |
faces = RetinaFace.extract_faces(img, align = True)
|