Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,8 +29,8 @@ def detect_objects(image):
|
|
| 29 |
# Set up the Gradio interface
|
| 30 |
interface = gr.Interface(
|
| 31 |
fn=detect_objects,
|
| 32 |
-
inputs=gr.Image(type="pil",
|
| 33 |
-
outputs=gr.Image(type="pil"),
|
| 34 |
live=True,
|
| 35 |
title="Real-time Object Detection with YOLOv5"
|
| 36 |
)
|
|
|
|
| 29 |
# Set up the Gradio interface
|
| 30 |
interface = gr.Interface(
|
| 31 |
fn=detect_objects,
|
| 32 |
+
inputs=gr.inputs.Image(type="pil", tool="editor"),
|
| 33 |
+
outputs=gr.outputs.Image(type="pil"),
|
| 34 |
live=True,
|
| 35 |
title="Real-time Object Detection with YOLOv5"
|
| 36 |
)
|