sensei-ml commited on
Commit
4766918
1 Parent(s): f03d45f

Update model/model.py

Browse files
Files changed (1) hide show
  1. 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 output_text
 
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