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