ipvikas commited on
Commit
21d8f52
·
1 Parent(s): e9e229b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  from deepface import DeepFace
5
  import matplotlib.pyplot as plt
6
 
7
- def get_deepface_verify(img1_detect, img2_detect ):
8
  img1_detect= DeepFace.detectFace(img1_path)
9
  img2_detect= DeepFace.detectFace(img2_path)
10
  model_name = 'ArcFace' #VGG-Face, Facenet, OpenFace, DeepFace, DeepID, Dlib, ArcFace or Ensemble
@@ -15,6 +15,6 @@ title = "DeepFace"
15
  description = "Deepface is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for python. It is a hybrid face recognition framework wrapping state-of-the-art models: VGG-Face, Google FaceNet, OpenFace, Facebook DeepFace, DeepID, ArcFace and Dlib."
16
  examples=[["10Jan_1.jpeg"],["10Jan_2.jpeg"]]
17
 
18
- facial_attribute_demo = gr.Interface(get_deepface_verify,["image","image", [gr.outputs.Label(label="sameperson"),gr.outputs.Label(label="distance"),gr.outputs.Label(label="max threshold toverify"),gr.outputs.Label(label="model"),gr.outputs.Label(label="similaritymetric")],enable_queue=True,examples=examples,title=title,description=description,theme="darkdefault").
19
 
20
  facial_attribute_demo.launch(debug=True)
 
4
  from deepface import DeepFace
5
  import matplotlib.pyplot as plt
6
 
7
+ def get_deepface_verify(img1_path, img2_path):
8
  img1_detect= DeepFace.detectFace(img1_path)
9
  img2_detect= DeepFace.detectFace(img2_path)
10
  model_name = 'ArcFace' #VGG-Face, Facenet, OpenFace, DeepFace, DeepID, Dlib, ArcFace or Ensemble
 
15
  description = "Deepface is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for python. It is a hybrid face recognition framework wrapping state-of-the-art models: VGG-Face, Google FaceNet, OpenFace, Facebook DeepFace, DeepID, ArcFace and Dlib."
16
  examples=[["10Jan_1.jpeg"],["10Jan_2.jpeg"]]
17
 
18
+ facial_attribute_demo = gr.Interface(get_deepface_verify,["image","image", [gr.outputs.Label(label="sameperson"),gr.outputs.Label(label="distance"),gr.outputs.Label(label="max threshold toverify"),gr.outputs.Label(label="model"),gr.outputs.Label(label="similaritymetric")],enable_queue=True,examples=examples,title=title,description=description,theme="darkdefault")
19
 
20
  facial_attribute_demo.launch(debug=True)