Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,8 +32,8 @@ def detect_objects(image):
|
|
32 |
# Define the Gradio interface
|
33 |
interface = gr.Interface(
|
34 |
fn=detect_objects,
|
35 |
-
inputs=gr.
|
36 |
-
outputs=gr.
|
37 |
title="YOLOv8 Object Detection",
|
38 |
description="Upload an image and YOLOv8 will detect objects in the image."
|
39 |
)
|
|
|
32 |
# Define the Gradio interface
|
33 |
interface = gr.Interface(
|
34 |
fn=detect_objects,
|
35 |
+
inputs=gr.Image(type="pil"),
|
36 |
+
outputs=gr.Image(type="pil"),
|
37 |
title="YOLOv8 Object Detection",
|
38 |
description="Upload an image and YOLOv8 will detect objects in the image."
|
39 |
)
|