Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,6 +83,8 @@ with app_tab:
|
|
83 |
st.write("Similarity Scores:", prediction_scores)
|
84 |
matched_score = prediction_scores[match_idx].item()
|
85 |
|
|
|
|
|
86 |
if matched_score >= 0.6:
|
87 |
matched_name = os.path.basename(image_paths[match_idx]).split('.')[0]
|
88 |
st.success(f"✅ Welcome: {matched_name}")
|
|
|
83 |
st.write("Similarity Scores:", prediction_scores)
|
84 |
matched_score = prediction_scores[match_idx].item()
|
85 |
|
86 |
+
### show the new image with face highlighted and name printed on it
|
87 |
+
|
88 |
if matched_score >= 0.6:
|
89 |
matched_name = os.path.basename(image_paths[match_idx]).split('.')[0]
|
90 |
st.success(f"✅ Welcome: {matched_name}")
|