Update model/model.py
Browse files- model/model.py +1 -1
model/model.py
CHANGED
@@ -17,4 +17,4 @@ def predict(image_path):
|
|
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
|
|
|
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
|