Nina-HK commited on
Commit
0988266
·
1 Parent(s): 63339e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = {1: 'healthy', 0: '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))
 
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))