Spaces:
Runtime error
Runtime error
File size: 343 Bytes
3dda64a 1f01186 3dda64a ceac16c 3dda64a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
import RetinaFace
gr.Interface(fn=temp, inputs=gr.inputs.Image(shape=(800, 600), source="upload", type='file'), outputs="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True)
def RetinaFace(img):
faces = RetinaFace.extract_faces(img_path = "img.jpg", align = True)
return faces[0]
|