NTAMBARA Etienne commited on
Commit
0f31aa2
·
1 Parent(s): 13c62db

Changes Made Keys p3

Browse files
Files changed (1) hide show
  1. app1.py +8 -5
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(type="pil"),
76
- outputs=[gr.Image(type="pil"), gr.JSON(label="Student Information")],
77
- title="Face Recognition Attendance System",
78
- description="Upload an image to identify individuals."
 
 
 
79
  )
80
 
81
  if __name__ == "__main__":
82
- iface.launch(debug=True,inline=False)
 
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()