Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +38,6 @@ detection_threshold_slider = gr.inputs.Slider(minimum=0, maximum=1, step=0.1, de
|
|
38 |
|
39 |
outputs = gr.outputs.Image(type="pil")
|
40 |
|
41 |
-
|
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)
|
46 |
-
|
47 |
-
# # Option 3: Continuous image stream from the webcam
|
48 |
-
# gr_interface = gr.Interface(fn=show_preds, inputs=["webcam", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, title='IceApp - COCO', live=True)
|
49 |
-
|
50 |
|
51 |
gr_interface.launch(inline=False, share=False, debug=True)
|
|
|
38 |
|
39 |
outputs = gr.outputs.Image(type="pil")
|
40 |
|
41 |
+
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'])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
gr_interface.launch(inline=False, share=False, debug=True)
|