Nina-HK commited on
Commit
f1bad2e
1 Parent(s): 249c24f
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -57,16 +57,16 @@ def classify_efn(inp):
57
  return confidences
58
 
59
  binary_interface_cnn = gr.Interface(fn=classify_cnn,
60
- inputs=gr.inputs.Image(shape=(224, 224)),
61
- outputs=gr.outputs.Label(num_top_classes=2),
62
  title="CNN Binary Image Classification",
63
  description="Classify an image as healthy or patient using CNN.",
64
  examples=[['300104.png']]
65
  )
66
 
67
  binary_interface_efn = gr.Interface(fn=classify_efn,
68
- inputs=gr.inputs.Image(shape=(224, 224)),
69
- outputs=gr.outputs.Label(num_top_classes=2),
70
  title="EfficientNet Binary Image Classification",
71
  description="Classify an image as healthy or patient using EfficientNet.",
72
  examples=[['300104.png']]
 
57
  return confidences
58
 
59
  binary_interface_cnn = gr.Interface(fn=classify_cnn,
60
+ inputs=gr.Image(shape=(224, 224)),
61
+ outputs=gr.Label(num_top_classes=2),
62
  title="CNN Binary Image Classification",
63
  description="Classify an image as healthy or patient using CNN.",
64
  examples=[['300104.png']]
65
  )
66
 
67
  binary_interface_efn = gr.Interface(fn=classify_efn,
68
+ inputs=gr.Image(shape=(224, 224)),
69
+ outputs=gr.Label(num_top_classes=2),
70
  title="EfficientNet Binary Image Classification",
71
  description="Classify an image as healthy or patient using EfficientNet.",
72
  examples=[['300104.png']]