Spaces:
Runtime error
Runtime error
| 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] | |