ipvikas commited on
Commit
9dcd5e5
·
1 Parent(s): 31e56a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,9 +4,9 @@ import gradio as gr
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
11
  result = DeepFace.verify(img1_path=img1_path,img2_path=img2_path,model_name = model_name)
12
  return result
 
4
  from deepface import DeepFace
5
  import matplotlib.pyplot as plt
6
 
7
+ def get_deepface_verify(img1_path, img2_path, model_name):
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
11
  result = DeepFace.verify(img1_path=img1_path,img2_path=img2_path,model_name = model_name)
12
  return result