Spaces:
Runtime error
Runtime error
Commit
·
3dda64a
1
Parent(s):
575536c
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import RetinaFace
|
| 3 |
+
|
| 4 |
+
gr.Interface(fn=temp, inputs-gr.inputs.Image(), outputs="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True))
|
| 5 |
+
|
| 6 |
+
def RetinaFace(img):
|
| 7 |
+
faces = RetinaFace.extract_faces(img_path = "img.jpg", align = True)
|
| 8 |
+
return faces[0]
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
|