Spaces:
Runtime error
Runtime error
Commit
·
a1b648f
1
Parent(s):
c066dec
changes minor issues
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from deepface import DeepFace
|
3 |
def verify(img1, img2):
|
4 |
result = DeepFace.verify(img1_path = img1, img2_path = img2)
|
5 |
-
return result
|
6 |
|
7 |
def detect(img):
|
8 |
dct = DeepFace.detectFace(img)
|
|
|
2 |
from deepface import DeepFace
|
3 |
def verify(img1, img2):
|
4 |
result = DeepFace.verify(img1_path = img1, img2_path = img2)
|
5 |
+
return result['verified']
|
6 |
|
7 |
def detect(img):
|
8 |
dct = DeepFace.detectFace(img)
|