NTAMBARA Etienne commited on
Commit
74690f9
·
1 Parent(s): 42c7197

Changes Made Keys p3

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,9 +83,9 @@ def process_webcam_image(image):
83
  # iface.launch(debug=True,inline=False)
84
  # Create the Gradio interface
85
  iface = gr.Interface(
86
- fn=process_webcam_image,
87
- inputs=gr.inputs.Image(source="webcam", type="pil", tool="editor"),
88
- outputs=[gr.outputs.Image(type="pil"), gr.outputs.Label()],
89
  title="Real-time Face Recognition Attendance System",
90
  description="Activate your webcam and take a photo to check attendance."
91
  )
 
83
  # iface.launch(debug=True,inline=False)
84
  # Create the Gradio interface
85
  iface = gr.Interface(
86
+ fn=recognize_face,
87
+ inputs=gr.components.Image(source="webcam", type="pil", tool="editor"),
88
+ outputs=[gr.components.Image(type="pil"), gr.components.Label()],
89
  title="Real-time Face Recognition Attendance System",
90
  description="Activate your webcam and take a photo to check attendance."
91
  )