Update app.py
Browse files
app.py
CHANGED
|
@@ -242,10 +242,15 @@ iface = gr.Interface(
|
|
| 242 |
gr.Image(type="pil", label="Masked Image (input × mask)"),
|
| 243 |
gr.Image(type="pil", label="Segmentation Overlay (red mask)")
|
| 244 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
title=title,
|
| 246 |
description=desc,
|
| 247 |
allow_flagging="never"
|
| 248 |
)
|
| 249 |
|
| 250 |
if __name__ == "__main__":
|
| 251 |
-
iface.launch()
|
|
|
|
| 242 |
gr.Image(type="pil", label="Masked Image (input × mask)"),
|
| 243 |
gr.Image(type="pil", label="Segmentation Overlay (red mask)")
|
| 244 |
],
|
| 245 |
+
examples=[
|
| 246 |
+
["images/NORMAL.jpg", 0.5, 0.5, 0.5,label="NORMAL"],
|
| 247 |
+
["images/VIRAL.jpg", 0.5, 0.5, 0.5,label="VIRAL"],
|
| 248 |
+
["images/BACT.jpg", 0.5, 0.5, 0.5,label="BACTERIAL"],
|
| 249 |
+
],
|
| 250 |
title=title,
|
| 251 |
description=desc,
|
| 252 |
allow_flagging="never"
|
| 253 |
)
|
| 254 |
|
| 255 |
if __name__ == "__main__":
|
| 256 |
+
iface.launch(share=False)
|