Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,9 @@ def detect_objects(img: Image.Image):
|
|
| 25 |
# Build Gradio interface
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=detect_objects,
|
| 28 |
-
inputs=gr.Image(source='upload', type='pil', tool='editor', label='Upload or Capture Image'),
|
|
|
|
|
|
|
| 29 |
outputs=gr.Image(type='pil', label='Detected Output'),
|
| 30 |
title='VigorVision YOLOv8 Object Detection',
|
| 31 |
description='Upload an image to detect objects using Ultralytics YOLOv8 model running directly inside this Hugging Face Space.'
|
|
|
|
| 25 |
# Build Gradio interface
|
| 26 |
iface = gr.Interface(
|
| 27 |
fn=detect_objects,
|
| 28 |
+
#inputs=gr.Image(source='upload', type='pil', tool='editor', label='Upload or Capture Image'),
|
| 29 |
+
inputs = gr.Image(type='pil', label='Upload or Capture Image', tool='editor')
|
| 30 |
+
|
| 31 |
outputs=gr.Image(type='pil', label='Detected Output'),
|
| 32 |
title='VigorVision YOLOv8 Object Detection',
|
| 33 |
description='Upload an image to detect objects using Ultralytics YOLOv8 model running directly inside this Hugging Face Space.'
|