hasnanmr commited on
Commit
7c75f13
·
1 Parent(s): a4e0598

fixing metric verification

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -85,7 +85,6 @@ def process_images(image1, image2):
85
  embedding2 = embedding2.flatten()
86
 
87
  euclidean_dist = euclidean_distance(embedding1, embedding2)
88
- cosine_sim = cosine_similarity(embedding1, embedding2)
89
  is_match = euclidean_dist < 0.3
90
 
91
  # Calculate confidence
 
85
  embedding2 = embedding2.flatten()
86
 
87
  euclidean_dist = euclidean_distance(embedding1, embedding2)
 
88
  is_match = euclidean_dist < 0.3
89
 
90
  # Calculate confidence