Clocksp commited on
Commit
040d179
·
verified ·
1 Parent(s): db73743

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -250,21 +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
  table_data = [
255
- ["images/NORMAL.jpg", "NORMAL"],
256
- ["images/VIRAL.jpg", "VIRAL"],
257
- ["images/BACT.jpg", "BACTERIAL"],
258
  ]
259
 
260
  gr.Markdown("### ☰ Test Samples")
261
 
262
  gr.Dataframe(
263
  value=table_data,
264
- headers=["Image", "Label"],
265
  datatype=["image", "str"],
266
- show_label=False,
267
- interactive=False
 
 
268
  )
269
 
270
 
 
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
+ img_normal_path = "images/NORMAL.jpeg"
254
+ img_viral_path = "images/VIRAL.jpeg"
255
+ img_bacterial_path = "images/BACT.jpeg"
256
  table_data = [
257
+ [img_normal_path, "NORMAL"],
258
+ [img_viral_path, "VIRAL"],
259
+ [img_bacterial_path, "BACTERIAL"]
260
  ]
261
 
262
  gr.Markdown("### ☰ Test Samples")
263
 
264
  gr.Dataframe(
265
  value=table_data,
266
+ headers=["Image", "Label1"],
267
  datatype=["image", "str"],
268
+ show_label=False,
269
+ interactive=False,
270
+ min_height=350,
271
+ wrap=True
272
  )
273
 
274