Bhaskar Saranga commited on
Commit
86967c6
1 Parent(s): a11d4dc

Moved examples down

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -218,7 +218,6 @@ with gr.Blocks() as demo:
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")
@@ -226,6 +225,7 @@ with gr.Blocks() as demo:
226
  with gr.Row():
227
  v7_fps_image = gr.Number(0,label='v7 FPS')
228
  v8_fps_image = gr.Number(0,label='v8 FPS')
 
229
 
230
 
231
  text_button.click(inference, inputs=[image_input,image_drop,
 
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
  text_comp_button = gr.Button("Detect")
222
  with gr.Row():
223
  image_comp_output_v7 = gr.Image(type='pil', label="YOLOv7 Output Image", source="upload")
 
225
  with gr.Row():
226
  v7_fps_image = gr.Number(0,label='v7 FPS')
227
  v8_fps_image = gr.Number(0,label='v8 FPS')
228
+ gr.Examples(examples=examples_images,inputs=image_comp_input,outputs=[image_comp_output_v7,image_comp_output_v8])
229
 
230
 
231
  text_button.click(inference, inputs=[image_input,image_drop,