Spaces:
Runtime error
Runtime error
Martin Tomov
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -225,6 +225,7 @@ examples = [
|
|
| 225 |
]
|
| 226 |
|
| 227 |
with gr.Blocks() as demo:
|
|
|
|
| 228 |
with gr.Row():
|
| 229 |
image_input = gr.Image(type="pil")
|
| 230 |
include_json = gr.Checkbox(label="Include JSON", value=False)
|
|
@@ -252,4 +253,6 @@ with gr.Blocks() as demo:
|
|
| 252 |
|
| 253 |
submit_button.click(update_outputs, [image_input, include_json, include_bboxes], [annotated_output, json_output, crops_output])
|
| 254 |
|
|
|
|
|
|
|
| 255 |
demo.launch()
|
|
|
|
| 225 |
]
|
| 226 |
|
| 227 |
with gr.Blocks() as demo:
|
| 228 |
+
gr.Markdown("# InsectSAM: Detect and Segment Insects in Images - ARISE, DIOPSIS🐞")
|
| 229 |
with gr.Row():
|
| 230 |
image_input = gr.Image(type="pil")
|
| 231 |
include_json = gr.Checkbox(label="Include JSON", value=False)
|
|
|
|
| 253 |
|
| 254 |
submit_button.click(update_outputs, [image_input, include_json, include_bboxes], [annotated_output, json_output, crops_output])
|
| 255 |
|
| 256 |
+
gr.Examples(examples=examples, inputs=image_input)
|
| 257 |
+
|
| 258 |
demo.launch()
|