conciomith's picture
Update app.py
3c78bdb
raw
history blame
371 Bytes
import gradio as gr
import RetinaFace
def RFace(img):
faces = RetinaFace.extract_faces(img, align = True)
return faces[0]
examples=[['Rdj.jpg','Rdj2.jpg','2.jpg','3.jpg','many.jpg']]
gr.Interface(fn=RFace, inputs=gr.inputs.Image(type="filepath"), outputs="image", title="RetinaFace Face Detector and Extractor",examples=examples).launch(inbrowser=True)