Elegbede commited on
Commit
af1629d
1 Parent(s): a70b7b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def predict_input_image(img):
13
 
14
  # Make predictions
15
  model = tf.keras.models.load_model('Tumor_Model.h5')
16
- prediction = model.predict(img_array)
17
  result = 'No Tumor Detected' if prediction[0][0] > 0.5 else 'Tumor detected'
18
 
19
  return f"Prediction: {result}"
 
13
 
14
  # Make predictions
15
  model = tf.keras.models.load_model('Tumor_Model.h5')
16
+ prediction = model.predict(img)
17
  result = 'No Tumor Detected' if prediction[0][0] > 0.5 else 'Tumor detected'
18
 
19
  return f"Prediction: {result}"