Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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}"
|