Spaces:
Sleeping
Sleeping
mix function
Browse files
app.py
CHANGED
@@ -72,10 +72,11 @@ binary_interface_efn = gr.Interface(fn=classify_efn,
|
|
72 |
examples=[['300104.png']]
|
73 |
)
|
74 |
|
75 |
-
demo = gr.Interface(
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
81 |
demo.launch()
|
|
|
72 |
examples=[['300104.png']]
|
73 |
)
|
74 |
|
75 |
+
demo = gr.Interface(
|
76 |
+
fn=gradio.mix.Parallel([classify_cnn, classify_efn]),
|
77 |
+
inputs=gr.inputs.Image(shape=(224, 224)),
|
78 |
+
outputs=gr.outputs.Label(num_top_classes=2),
|
79 |
+
title="Binary Image Classification",
|
80 |
+
description="Classify an image as healthy or patient using either CNN or EfficientNet.",
|
81 |
+
)
|
82 |
demo.launch()
|