Nina-HK commited on
Commit
10eff77
·
1 Parent(s): 0eb0dd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -73,15 +73,18 @@ def classify_efn(inp):
73
 
74
  binary_interface_cnn = gr.Interface(fn=classify_cnn,
75
  inputs=gr.Image(shape=(224, 224)),
76
- outputs=gr.Label(num_top_classes=2),
 
77
  title="Binary Image Classification",
78
  description="Classify an image as healthy or patient using custom CNN.",
79
  examples=[['3310277.png'],['371129.png']]
80
  )
81
 
 
82
  binary_interface_efn = gr.Interface(fn=classify_efn,
83
  inputs=gr.Image(shape=(224, 224)),
84
- outputs=gr.Label(num_top_classes=2),
 
85
  title="Binary Image Classification",
86
  description="Classify an image as healthy or patient using EfficientNet.",
87
  examples=[['3310277.png'],['371129.png']]
 
73
 
74
  binary_interface_cnn = gr.Interface(fn=classify_cnn,
75
  inputs=gr.Image(shape=(224, 224)),
76
+ #outputs=gr.Label(num_top_classes=2),
77
+ outputs=gr.outputs.Textbox(),
78
  title="Binary Image Classification",
79
  description="Classify an image as healthy or patient using custom CNN.",
80
  examples=[['3310277.png'],['371129.png']]
81
  )
82
 
83
+
84
  binary_interface_efn = gr.Interface(fn=classify_efn,
85
  inputs=gr.Image(shape=(224, 224)),
86
+ #outputs=gr.Label(num_top_classes=2),
87
+ outputs=gr.outputs.Textbox(),
88
  title="Binary Image Classification",
89
  description="Classify an image as healthy or patient using EfficientNet.",
90
  examples=[['3310277.png'],['371129.png']]