conciomith commited on
Commit
2689406
·
1 Parent(s): 2b57f68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -4,9 +4,11 @@ import RetinaFace
4
  def RetinaFace(img):
5
  faces = RetinaFace.extract_faces(img, align = True)
6
  return faces[0]
7
-
8
- inputs = gr.inputs.Image(shape=(800, 600), source="upload")
9
- gr.Interface(fn=RetinaFace, inputs=inputs, outputs="plot", title="RetinaFace").launch(inbrowser=True)
 
 
10
 
11
 
12
 
 
4
  def RetinaFace(img):
5
  faces = RetinaFace.extract_faces(img, align = True)
6
  return faces[0]
7
+
8
+
9
+ inputs = gr.inputs.Image(type="filepath")
10
+ examples=[['Rdj.jpg']]
11
+ gr.Interface(fn=RetinaFace, inputs=inputs, outputs="plot", title="RetinaFace",examples=examples).launch(inbrowser=True)
12
 
13
 
14