Spaces:
Runtime error
Runtime error
NTAMBARA Etienne
commited on
Commit
·
0f31aa2
1
Parent(s):
13c62db
Changes Made Keys p3
Browse files
app1.py
CHANGED
@@ -72,11 +72,14 @@ def process_webcam_image(image):
|
|
72 |
# Gradio interface
|
73 |
iface = gr.Interface(
|
74 |
fn=recognize_face,
|
75 |
-
inputs=gr.Image(
|
76 |
-
outputs=[
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
79 |
)
|
80 |
|
81 |
if __name__ == "__main__":
|
82 |
-
iface.launch(
|
|
|
72 |
# Gradio interface
|
73 |
iface = gr.Interface(
|
74 |
fn=recognize_face,
|
75 |
+
inputs=gr.Image(source="webcam", tool="editor"),
|
76 |
+
outputs=[
|
77 |
+
gr.Image(type="pil"),
|
78 |
+
gr.JSON(label="Student Information")
|
79 |
+
],
|
80 |
+
title="Real-time Face Recognition Attendance System",
|
81 |
+
description="Activate your webcam and take a photo to check attendance."
|
82 |
)
|
83 |
|
84 |
if __name__ == "__main__":
|
85 |
+
iface.launch()
|