hasibzunair commited on
Commit
f81999a
·
1 Parent(s): 92f6774
Files changed (3) hide show
  1. app.py +2 -3
  2. benign.png +0 -0
  3. malignant.png +0 -0
app.py CHANGED
@@ -21,8 +21,7 @@ model = None
21
  model = load_model("MelaNet.h5", compile=False)
22
  model.summary()
23
 
24
- # Path to examples and class label list
25
- examples = ["benign.png", "malignant.png"]
26
  labels = ["Benign", "Malignant"]
27
 
28
  # Helpers
@@ -65,7 +64,7 @@ demo = gr.Interface(
65
  article=article,
66
  inputs=gr.inputs.Image(type="filepath", label="Input"),
67
  outputs="label",
68
- examples=examples,
69
  allow_flagging="never",
70
  analytics_enabled=False,
71
  )
 
21
  model = load_model("MelaNet.h5", compile=False)
22
  model.summary()
23
 
24
+ # Class label list
 
25
  labels = ["Benign", "Malignant"]
26
 
27
  # Helpers
 
64
  article=article,
65
  inputs=gr.inputs.Image(type="filepath", label="Input"),
66
  outputs="label",
67
+ examples=[f"resources/{fname}.png" for fname in ["benign", "malignant"]],
68
  allow_flagging="never",
69
  analytics_enabled=False,
70
  )
benign.png DELETED
Binary file (110 kB)
 
malignant.png DELETED
Binary file (105 kB)