Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def segment_image(pil_img):
|
|
| 86 |
(255, 0, 0),
|
| 87 |
2,
|
| 88 |
)
|
| 89 |
-
|
| 90 |
def get_sample_images():
|
| 91 |
"""
|
| 92 |
Get list of sample images from Eye_Dataset folder.
|
|
@@ -104,7 +104,6 @@ def segment_image(pil_img):
|
|
| 104 |
|
| 105 |
return sample_images[:10] # Return max 10 sample images
|
| 106 |
|
| 107 |
-
return image_np # RGB numpy array works with gr.Image
|
| 108 |
|
| 109 |
with gr.Blocks() as demo:
|
| 110 |
gr.Markdown("# Conjunctiva Segmentation - Mask R-CNN")
|
|
|
|
| 86 |
(255, 0, 0),
|
| 87 |
2,
|
| 88 |
)
|
| 89 |
+
return image_np
|
| 90 |
def get_sample_images():
|
| 91 |
"""
|
| 92 |
Get list of sample images from Eye_Dataset folder.
|
|
|
|
| 104 |
|
| 105 |
return sample_images[:10] # Return max 10 sample images
|
| 106 |
|
|
|
|
| 107 |
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
gr.Markdown("# Conjunctiva Segmentation - Mask R-CNN")
|