ImanAmran commited on
Commit
3b34f8b
1 Parent(s): fa5a302

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,8 +28,8 @@ def detect_faces(image):
28
  # Define the Gradio interface
29
  demo = gr.Interface(
30
  fn=detect_faces,
31
- inputs=gr.inputs.Image(shape=(480, 640), source="webcam"),
32
- outputs=gr.outputs.Image(type="numpy", label="Processed Image")
33
  )
34
 
35
  demo.launch()
 
28
  # Define the Gradio interface
29
  demo = gr.Interface(
30
  fn=detect_faces,
31
+ inputs=gr.components.Image(shape=(480, 640), source="webcam"),
32
+ outputs=gr.components.Image(type="numpy", label="Processed Image")
33
  )
34
 
35
  demo.launch()