Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,8 @@ interface = gr.Interface(
|
|
| 66 |
fn=segment_image,
|
| 67 |
inputs=gr.Image(type="pil"), # Input is an image
|
| 68 |
outputs=gr.Image(type="pil"), # Output is an image with the colormap
|
| 69 |
-
examples=["example_image.jpg"], # Use the saved image as an example
|
|
|
|
| 70 |
title="Image Segmentation with Colormap",
|
| 71 |
description="Upload an image, and the segmentation model will produce an output with a colormap applied to the segmented classes."
|
| 72 |
)
|
|
|
|
| 66 |
fn=segment_image,
|
| 67 |
inputs=gr.Image(type="pil"), # Input is an image
|
| 68 |
outputs=gr.Image(type="pil"), # Output is an image with the colormap
|
| 69 |
+
#examples=["example_image.jpg"], # Use the saved image as an example
|
| 70 |
+
examples=["1.jpg", "2.jpg", "3.jpg"]
|
| 71 |
title="Image Segmentation with Colormap",
|
| 72 |
description="Upload an image, and the segmentation model will produce an output with a colormap applied to the segmented classes."
|
| 73 |
)
|