Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,10 +123,10 @@ with app_tab:
|
|
123 |
st.warning("Failed to update attendance.")
|
124 |
except Exception as e:
|
125 |
st.error(f"Request failed: {e}")
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
|
|
|
123 |
st.warning("Failed to update attendance.")
|
124 |
except Exception as e:
|
125 |
st.error(f"Request failed: {e}")
|
126 |
+
else:
|
127 |
+
st.error("❌ Match not found. Try again.")
|
128 |
+
|
129 |
+
# Convert back to RGB for displaying in Streamlit
|
130 |
+
final_img = cv2.cvtColor(cv2_webcam, cv2.COLOR_BGR2RGB)
|
131 |
+
st.image(final_img, caption="Detected Face")
|
132 |
|