Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,13 @@ def recognize_faces(img):
|
|
55 |
cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
56 |
|
57 |
print(name)
|
58 |
-
return
|
59 |
|
60 |
# Create Gradio interface
|
61 |
iface = gr.Interface(
|
62 |
fn=recognize_faces,
|
63 |
inputs="image",
|
64 |
-
outputs="
|
65 |
live=True,
|
66 |
title="Face Recognition App",
|
67 |
description="This app recognizes faces in an image and updates attendance."
|
|
|
55 |
cv2.putText(image, name, (x1 + 6, y2 - 6), cv2.FONT_HERSHEY_COMPLEX, 1, (255, 255, 255), 2)
|
56 |
|
57 |
print(name)
|
58 |
+
return name
|
59 |
|
60 |
# Create Gradio interface
|
61 |
iface = gr.Interface(
|
62 |
fn=recognize_faces,
|
63 |
inputs="image",
|
64 |
+
outputs="text",
|
65 |
live=True,
|
66 |
title="Face Recognition App",
|
67 |
description="This app recognizes faces in an image and updates attendance."
|