ravinder2024 commited on
Commit
0ef30eb
·
verified ·
1 Parent(s): bbdc93b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -57,10 +57,9 @@ if img_file_buffer is not None:
57
  # Optionally draw name label below face (commented out for now)
58
  cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
59
  cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
60
-
61
- # Display image with the overlay
62
- st.image(image, use_column_width=True, output_format="PNG")
63
  faceMatchedflag = 1
64
-
 
 
65
  if faceMatchedflag == 0:
66
  st.warning("No faces detected in the image.")
 
57
  # Optionally draw name label below face (commented out for now)
58
  cv2.rectangle(image , (x1, y2 - 35), (x2, y2), (0, 255, 0), cv2.FILLED)
59
  cv2.putText(image , name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
 
 
 
60
  faceMatchedflag = 1
61
+ # Display image with the overlay
62
+ st.image(image, use_column_width=True, output_format="PNG")
63
+
64
  if faceMatchedflag == 0:
65
  st.warning("No faces detected in the image.")