Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def yolo_inference_for_examples(image, model_id, conf_threshold, iou_threshold,
|
|
119 |
iou_threshold=iou_threshold,
|
120 |
max_detection=max_detection
|
121 |
)
|
122 |
-
return
|
123 |
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown("# Yolo13: Object Detection")
|
@@ -188,7 +188,7 @@ with gr.Blocks() as app:
|
|
188 |
],
|
189 |
fn=yolo_inference_for_examples,
|
190 |
inputs=[image, model_id, conf_threshold, iou_threshold, max_detection],
|
191 |
-
outputs=[
|
192 |
label="Examples (Images)",
|
193 |
)
|
194 |
|
|
|
119 |
iou_threshold=iou_threshold,
|
120 |
max_detection=max_detection
|
121 |
)
|
122 |
+
return annotated_image
|
123 |
|
124 |
with gr.Blocks() as app:
|
125 |
gr.Markdown("# Yolo13: Object Detection")
|
|
|
188 |
],
|
189 |
fn=yolo_inference_for_examples,
|
190 |
inputs=[image, model_id, conf_threshold, iou_threshold, max_detection],
|
191 |
+
outputs=[output_image],
|
192 |
label="Examples (Images)",
|
193 |
)
|
194 |
|