Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|