Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def detect_faces(image):
|
|
| 10 |
return results.render()[0]
|
| 11 |
|
| 12 |
# Create a Gradio interface
|
| 13 |
-
iface = gr.Interface(fn=detect_faces, inputs=gr.
|
| 14 |
|
| 15 |
# Launch the interface
|
| 16 |
iface.launch(debug=True)
|
|
|
|
| 10 |
return results.render()[0]
|
| 11 |
|
| 12 |
# Create a Gradio interface
|
| 13 |
+
iface = gr.Interface(fn=detect_faces, inputs=gr.Image(source="webcam", tool =None), outputs="image")
|
| 14 |
|
| 15 |
# Launch the interface
|
| 16 |
iface.launch(debug=True)
|