RajaThor commited on
Commit
527de27
·
verified ·
1 Parent(s): e9bf10d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ def recognize_face_optimal(image_path):
177
  if matches:
178
  best_match = min(matches, key=lambda x: x[1])
179
  best_name, best_score = best_match
180
- if best_score >= 0.48: # Adjust the threshold as needed
181
  info = ref.child(best_name).child("info").get()
182
  insta_handle = info["instagram_handle"]
183
  insta_link = info["instagram_link"]
 
177
  if matches:
178
  best_match = min(matches, key=lambda x: x[1])
179
  best_name, best_score = best_match
180
+ if best_score > 0.48: # Adjust the threshold as needed
181
  info = ref.child(best_name).child("info").get()
182
  insta_handle = info["instagram_handle"]
183
  insta_link = info["instagram_link"]