igmarco commited on
Commit
6b85701
·
1 Parent(s): 4858bef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ detection_threshold_slider = gr.inputs.Slider(minimum=0, maximum=1, step=0.1, de
39
  outputs = gr.outputs.Image(type="pil")
40
 
41
  # Option 1: Get an image from local drive
42
- gr_interface = gr.Interface(fn=show_preds, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, examples=['raccoon1.jpg','raccoon2.jpg'])
43
 
44
  # # Option 2: Grab an image from a webcam
45
  # gr_interface = gr.Interface(fn=show_preds, inputs=["webcam", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, title='IceApp - COCO', live=False)
 
39
  outputs = gr.outputs.Image(type="pil")
40
 
41
  # Option 1: Get an image from local drive
42
+ gr_interface = gr.Interface(fn=show_preds, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, examples=[['raccoon1.jpg', True, True, 0.5],['raccoon2.jpg', True, True, 0.5]])
43
 
44
  # # Option 2: Grab an image from a webcam
45
  # gr_interface = gr.Interface(fn=show_preds, inputs=["webcam", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, title='IceApp - COCO', live=False)