Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
32 |
-
outputs=gr.
|
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()
|