pushpinder06 commited on
Commit
9bd5795
·
verified ·
1 Parent(s): e1ac669

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- 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
 
 
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