Update app.py
Browse files
app.py
CHANGED
|
@@ -250,28 +250,25 @@ with gr.Blocks(title=title) as demo:
|
|
| 250 |
inputs=[img_in, thresh_b, thresh_v, seg_thresh],
|
| 251 |
outputs=[pred_out, pb_out, pv_out, masked_img_out, overlay_out]
|
| 252 |
)
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
[img_normal_path, "NORMAL"],
|
| 258 |
-
[img_viral_path, "VIRAL"],
|
| 259 |
-
[img_bacterial_path, "BACTERIAL"]
|
| 260 |
]
|
| 261 |
|
| 262 |
-
gr.
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
wrap=True
|
| 272 |
)
|
| 273 |
|
| 274 |
|
|
|
|
| 275 |
if __name__ == "__main__":
|
| 276 |
demo.launch()
|
| 277 |
|
|
|
|
| 250 |
inputs=[img_in, thresh_b, thresh_v, seg_thresh],
|
| 251 |
outputs=[pred_out, pb_out, pv_out, masked_img_out, overlay_out]
|
| 252 |
)
|
| 253 |
+
example_samples = [
|
| 254 |
+
["images/NORMAL.jpg", "NORMAL"],
|
| 255 |
+
["images/VIRAL.jpg", "VIRAL"],
|
| 256 |
+
["images/BACT.jpg", "BACTERIAL"],
|
|
|
|
|
|
|
|
|
|
| 257 |
]
|
| 258 |
|
| 259 |
+
gr.Dataset(
|
| 260 |
+
samples=example_samples,
|
| 261 |
+
# components=[
|
| 262 |
+
# gr.Image(type="filepath", label="Image", interactive=False),
|
| 263 |
+
# gr.Markdown(label="True Label")
|
| 264 |
+
# ],
|
| 265 |
+
headers=["Image", "True Label"],
|
| 266 |
+
# label="Examples Table",
|
| 267 |
+
layout="table"
|
|
|
|
| 268 |
)
|
| 269 |
|
| 270 |
|
| 271 |
+
|
| 272 |
if __name__ == "__main__":
|
| 273 |
demo.launch()
|
| 274 |
|