Bhaskar Saranga commited on
Commit
db8d6af
1 Parent(s): 3237083

fixed Runt time errors

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -215,11 +215,11 @@ with gr.Blocks() as demo:
215
  gr.Markdown("## YOLOv7 vs YOLOv8 Object detection comparision")
216
  with gr.Row():
217
  image_comp_input = gr.Image(type='pil', label="Input Image", source="upload")
218
- text_comp_button = gr.Button("Detect")
219
- gr.Examples(examples=examples_images,inputs=image_input,outputs=image_output)
220
  with gr.Row():
221
  image_comp_iou_threshold = gr.Slider(label="IOU Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.45)
222
  image_comp_conf_threshold = gr.Slider(label="Confidence Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.25)
 
 
223
  with gr.Row():
224
  image_comp_output_v7 = gr.Image(type='pil', label="YOLOv7 Output Image", source="upload")
225
  image_comp_output_v8 = gr.Image(type='pil', label="YOLOv8 Output Image", source="upload")
 
215
  gr.Markdown("## YOLOv7 vs YOLOv8 Object detection comparision")
216
  with gr.Row():
217
  image_comp_input = gr.Image(type='pil', label="Input Image", source="upload")
 
 
218
  with gr.Row():
219
  image_comp_iou_threshold = gr.Slider(label="IOU Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.45)
220
  image_comp_conf_threshold = gr.Slider(label="Confidence Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.25)
221
+ gr.Examples(examples=examples_images,inputs=image_comp_input)
222
+ text_comp_button = gr.Button("Detect")
223
  with gr.Row():
224
  image_comp_output_v7 = gr.Image(type='pil', label="YOLOv7 Output Image", source="upload")
225
  image_comp_output_v8 = gr.Image(type='pil', label="YOLOv8 Output Image", source="upload")