Clocksp commited on
Commit
8ce7c1c
·
verified ·
1 Parent(s): 141a75c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -10
app.py CHANGED
@@ -250,21 +250,26 @@ with gr.Blocks() as demo:
250
  allow_flagging="never"
251
  )
252
 
253
- example_samples = [
 
 
 
254
  ["images/NORMAL.jpeg", "NORMAL"],
255
  ["images/VIRAL.jpeg", "VIRAL"],
256
  ["images/BACT.jpeg", "BACTERIAL"],
257
  ]
258
-
259
- gr.Dataset(
260
- samples=example_samples,
261
- components=[
262
- gr.Markdown(label="True Label")
263
- ],
264
- headers=["Image", "Label"],
265
- label="Test Samples",
266
- layout="table"
267
  )
 
 
 
 
 
 
 
 
 
268
 
269
  if __name__ == "__main__":
270
  demo.launch(share=False)
 
250
  allow_flagging="never"
251
  )
252
 
253
+
254
+
255
+ gr.Examples(
256
+ example = [
257
  ["images/NORMAL.jpeg", "NORMAL"],
258
  ["images/VIRAL.jpeg", "VIRAL"],
259
  ["images/BACT.jpeg", "BACTERIAL"],
260
  ]
261
+ inputs=[Image, Label],
262
+ label="Try examples",
 
 
 
 
 
 
 
263
  )
264
+ # gr.Dataset(
265
+ # samples=example_samples,
266
+ # components=[
267
+ # gr.Markdown(label="True Label")
268
+ # ],
269
+ # headers=["Image", "Label"],
270
+ # label="Test Samples",
271
+ # layout="table"
272
+ # )
273
 
274
  if __name__ == "__main__":
275
  demo.launch(share=False)