conciomith's picture
Update app.py
1f01186
raw
history blame
343 Bytes
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]