Clocksp commited on
Commit
2076a0e
·
verified ·
1 Parent(s): 249b7e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -251,21 +251,21 @@ with gr.Blocks(title=title) as demo:
251
  outputs=[pred_out, pb_out, pv_out, masked_img_out, overlay_out]
252
  )
253
 
254
- example_samples = [
255
  ["images/NORMAL.jpg", "NORMAL"],
256
  ["images/VIRAL.jpg", "VIRAL"],
257
  ["images/BACT.jpg", "BACTERIAL"],
258
  ]
259
 
260
- gr.Dataset(
261
- samples=example_samples,
262
- components=[
263
- gr.Image(type="filepath", label="Image", interactive=False),
264
- gr.Markdown(label="True Label")
265
- ],
266
- headers=["Image", "True Label"],
267
- label="Examples Table",
268
- layout="table"
269
  )
270
 
271
 
 
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
+ height=350
269
  )
270
 
271