Ahsen Khaliq commited on
Commit ·
f954a49
1
Parent(s): 0b15c7b
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
from deepface import DeepFace
|
| 4 |
|
| 5 |
|
| 6 |
-
def inference(image1,image2):
|
| 7 |
-
result = DeepFace.verify(img1_path = image1, img2_path = image2)
|
| 8 |
if result["verified"]:
|
| 9 |
text = "same person"
|
| 10 |
else:
|
|
|
|
| 3 |
from deepface import DeepFace
|
| 4 |
|
| 5 |
|
| 6 |
+
def inference(image1,image2,model_name):
|
| 7 |
+
result = DeepFace.verify(img1_path = image1, img2_path = image2,model_name=model_name)
|
| 8 |
if result["verified"]:
|
| 9 |
text = "same person"
|
| 10 |
else:
|