cdcvd commited on
Commit
a8f2bb2
·
verified ·
1 Parent(s): dbc08ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Image(type="pil"),
36
- outputs=gr.outputs.Image(type="pil"),
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
  )