Clocksp commited on
Commit
5725451
·
verified ·
1 Parent(s): d960535

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -250,24 +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
- 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()
 
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
+ gr.Markdown("## Test Samples")
255
+
256
+ with gr.Row():
257
 
258
+ # NORMAL
259
+ with gr.Column(scale=1):
260
+ gr.Markdown("### NORMAL")
261
+ gr.Image("images/NORMAL.jpeg", show_label=False, height=220)
262
+
263
+ # VIRAL
264
+ with gr.Column(scale=1):
265
+ gr.Markdown("### VIRAL")
266
+ gr.Image("images/VIRAL.jpeg", show_label=False, height=220)
267
+
268
+ # BACTERIAL
269
+ with gr.Column(scale=1):
270
+ gr.Markdown("### BACTERIAL")
271
+ gr.Image("images/BACT.jpeg", show_label=False, height=220)
272
 
273
  if __name__ == "__main__":
274
  demo.launch()