Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,13 +34,13 @@ import gradio as gr
|
|
34 |
model_cnn = tf.keras.models.load_model("CNN_binary")
|
35 |
|
36 |
# define the labels for the binary classification model
|
37 |
-
labels_cnn = {
|
38 |
|
39 |
# load the EfficientNet binary classification model
|
40 |
model_efn = tf.keras.models.load_model("efficientNet_binary")
|
41 |
|
42 |
# define the labels for the binary classification model
|
43 |
-
labels_efn = {0: '
|
44 |
|
45 |
def classify_cnn(inp):
|
46 |
inp = inp.reshape((-1, 224, 224, 3))
|
|
|
34 |
model_cnn = tf.keras.models.load_model("CNN_binary")
|
35 |
|
36 |
# define the labels for the binary classification model
|
37 |
+
labels_cnn = {0: 'Healthy', 1: 'Patients'}
|
38 |
|
39 |
# load the EfficientNet binary classification model
|
40 |
model_efn = tf.keras.models.load_model("efficientNet_binary")
|
41 |
|
42 |
# define the labels for the binary classification model
|
43 |
+
labels_efn = {0: 'Healthy', 1: 'Patients'}
|
44 |
|
45 |
def classify_cnn(inp):
|
46 |
inp = inp.reshape((-1, 224, 224, 3))
|