Ahsen Khaliq commited on
Commit
07ddf7c
1 Parent(s): 7cd7954

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def inference(image1,image2,model_name,dist_met):
7
  result = DeepFace.verify(img1_path = image1, img2_path = image2,model_name=model_name,distance_metric=dist_met)
8
  return result["verified"],result["distance"],result["max_threshold_to_verify"],result["model"],result["similarity_metric"]
9
 
10
- examples=[['mona.jpeg','mona.jpeg','VGG-Face'],['mona.jpeg','pearl.jpeg','Facenet']]
11
 
12
  title = "DeepFace"
13
  description = "Gradio demo for DeepFace for face verification: verifies face pairs as same person or different persons. To use it, simply upload your images, or click one of the examples to load them. Read more at the links below."
7
  result = DeepFace.verify(img1_path = image1, img2_path = image2,model_name=model_name,distance_metric=dist_met)
8
  return result["verified"],result["distance"],result["max_threshold_to_verify"],result["model"],result["similarity_metric"]
9
 
10
+ examples=[['mona.jpeg','mona.jpeg','VGG-Face','cosine'],['mona.jpeg','pearl.jpeg','Facenet','euclidean']]
11
 
12
  title = "DeepFace"
13
  description = "Gradio demo for DeepFace for face verification: verifies face pairs as same person or different persons. To use it, simply upload your images, or click one of the examples to load them. Read more at the links below."