Update app.py
Browse files
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
|
| 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"]
|