conciomith commited on
Commit
ceac16c
·
1 Parent(s): 0d0dc25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,11 +1,13 @@
1
  import gradio as gr
2
  import RetinaFace
3
 
4
- gr.Interface(fn=temp, inputs-gr.inputs.Image(), outputs="plot", title ="RetinaFace", allow_flagging = "never").launch(inbrowser= True))
5
 
6
  def RetinaFace(img):
7
  faces = RetinaFace.extract_faces(img_path = "img.jpg", align = True)
8
  return faces[0]
 
 
9
 
10
 
11
 
 
1
  import gradio as gr
2
  import RetinaFace
3
 
4
+ 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)
5
 
6
  def RetinaFace(img):
7
  faces = RetinaFace.extract_faces(img_path = "img.jpg", align = True)
8
  return faces[0]
9
+
10
+
11
 
12
 
13