Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,8 +91,7 @@ if file_name is not None:
|
|
| 91 |
|
| 92 |
# Store attendance in SQLite database
|
| 93 |
print(recognized_names)
|
| 94 |
-
|
| 95 |
-
add_attendance(name)
|
| 96 |
# Display the image with recognized faces
|
| 97 |
st.image(image, use_column_width=True, output_format="PNG")
|
| 98 |
st.write("Length : {recognizes_names}")
|
|
@@ -100,5 +99,8 @@ if file_name is not None:
|
|
| 100 |
st.write("Recognized Names:")
|
| 101 |
for i, name in enumerate(recognized_names):
|
| 102 |
st.write(f"Face {i+1}: {name}")
|
|
|
|
| 103 |
else:
|
| 104 |
st.warning("No faces detected in the image. Face recognition failed.")
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
# Store attendance in SQLite database
|
| 93 |
print(recognized_names)
|
| 94 |
+
|
|
|
|
| 95 |
# Display the image with recognized faces
|
| 96 |
st.image(image, use_column_width=True, output_format="PNG")
|
| 97 |
st.write("Length : {recognizes_names}")
|
|
|
|
| 99 |
st.write("Recognized Names:")
|
| 100 |
for i, name in enumerate(recognized_names):
|
| 101 |
st.write(f"Face {i+1}: {name}")
|
| 102 |
+
|
| 103 |
else:
|
| 104 |
st.warning("No faces detected in the image. Face recognition failed.")
|
| 105 |
+
for i in recognized_names:
|
| 106 |
+
add_attendance(name)
|