phucd commited on
Commit ·
f5923d3
1
Parent(s): a245281
Update input examples
Browse files
app.py
CHANGED
|
@@ -70,7 +70,14 @@ with gr.Blocks() as demo:
|
|
| 70 |
with gr.Row():
|
| 71 |
input_image = gr.Image(label="Input Image", type="numpy")
|
| 72 |
output_image = gr.Image(label="Segmentation Overlay", type="numpy")
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
input_image.change(segment_image, inputs=input_image, outputs=output_image)
|
| 75 |
|
| 76 |
demo.launch()
|
|
|
|
| 70 |
with gr.Row():
|
| 71 |
input_image = gr.Image(label="Input Image", type="numpy")
|
| 72 |
output_image = gr.Image(label="Segmentation Overlay", type="numpy")
|
| 73 |
+
examples = gr.Examples(
|
| 74 |
+
examples=[
|
| 75 |
+
"./examples/sample.jpg",
|
| 76 |
+
"./examples/manga.png",
|
| 77 |
+
"./examples/invoice.png"
|
| 78 |
+
],
|
| 79 |
+
inputs=input_image
|
| 80 |
+
)
|
| 81 |
input_image.change(segment_image, inputs=input_image, outputs=output_image)
|
| 82 |
|
| 83 |
demo.launch()
|