Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ for root, dirs, files in os.walk(r'sample_images/'):
|
|
42 |
print(filename)
|
43 |
|
44 |
examples = ["sample_images/"+file for file in files]
|
45 |
-
article="<p style='text-align: center'><a href='https://dicksonneoh.com/
|
46 |
enable_queue=True
|
47 |
|
48 |
|
@@ -70,7 +70,7 @@ detection_threshold_slider = gr.inputs.Slider(minimum=0, maximum=1, step=0.1, de
|
|
70 |
outputs = gr.outputs.Image(type="pil")
|
71 |
|
72 |
# Option 1: Get an image from local drive
|
73 |
-
gr_interface = gr.Interface(fn=show_preds, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, title='
|
74 |
|
75 |
# # Option 2: Grab an image from a webcam
|
76 |
# 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)
|
|
|
42 |
print(filename)
|
43 |
|
44 |
examples = ["sample_images/"+file for file in files]
|
45 |
+
article="<p style='text-align: center'><a href='https://dicksonneoh.com/' target='_blank'>Blog post</a></p>"
|
46 |
enable_queue=True
|
47 |
|
48 |
|
|
|
70 |
outputs = gr.outputs.Image(type="pil")
|
71 |
|
72 |
# Option 1: Get an image from local drive
|
73 |
+
gr_interface = gr.Interface(fn=show_preds, inputs=["image", display_chkbox_label, display_chkbox_box, detection_threshold_slider], outputs=outputs, title='Microalgae Detection', article=article, examples=examples)
|
74 |
|
75 |
# # Option 2: Grab an image from a webcam
|
76 |
# 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)
|