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

Update model/model.py

Browse files

Deleting innecesary line.

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