File size: 293 Bytes
3dda64a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
import RetinaFace

gr.Interface(fn=temp, inputs-gr.inputs.Image(), 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]