Update model/model.py
Browse filesDeleting innecesary line.
- model/model.py +0 -1
model/model.py
CHANGED
@@ -16,5 +16,4 @@ def predict(image_path):
|
|
16 |
prediction = model.predict(img_array)
|
17 |
labels = ['Glioma', 'Meningioma', 'No tumor', 'Pituitary']
|
18 |
probabilities = {label: probability for label, probability in zip(labels, prediction[0])}
|
19 |
-
output_text = "\n".join([f"{label}: {probability:.2f}" for label, probability in probabilities.items()])
|
20 |
return probabilities
|
|
|
16 |
prediction = model.predict(img_array)
|
17 |
labels = ['Glioma', 'Meningioma', 'No tumor', 'Pituitary']
|
18 |
probabilities = {label: probability for label, probability in zip(labels, prediction[0])}
|
|
|
19 |
return probabilities
|