conciomith's picture
Update app.py
3bd4e85
raw
history blame
304 Bytes
import gradio as gr
import RetinaFace
def RFace(img):
faces = RetinaFace.extract_faces(img, align = True)
return faces[0]
examples=[['Rdj.jpg']]
gr.Interface(fn=RFace, inputs=gr.inputs.Image(type="filepath"), outputs="plot", title="RetinaFace",examples=examples).launch(inbrowser=True)