atalaydenknalbant commited on
Commit
557597d
·
verified ·
1 Parent(s): f08e531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 gr.update(value="Image"), annotated_image
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=[input_type, output_image],
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