Spaces:
Sleeping
Sleeping
update
Browse files
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.
|
61 |
-
outputs=gr.
|
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.
|
69 |
-
outputs=gr.
|
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']]
|