TroglodyteDerivations
commited on
Commit
•
8410159
1
Parent(s):
6da3689
Updated lines 104-128 with: st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0]) st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0]) st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0]) st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
Browse files
app.py
CHANGED
@@ -102,6 +102,33 @@ st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
|
102 |
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
103 |
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
104 |
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
# Display images with predictions
|
107 |
display_images_and_predictions(image_paths, predicted_labels, true_labels)
|
|
|
102 |
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
103 |
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
104 |
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
105 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
106 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
107 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
108 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
109 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
110 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
111 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
112 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
113 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
114 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
115 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
116 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
117 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
118 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
119 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
120 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
121 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
122 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
123 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
124 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
125 |
+
st.write("\nNormal Image Prediction:", np.round(predictions[0], 3)[0])
|
126 |
+
st.write("Glioma Image Prediction:", np.round(predictions[1], 3)[0])
|
127 |
+
st.write("Meningioma Image Prediction:", np.round(predictions[2], 3)[0])
|
128 |
+
st.write("Pituitary Image Prediction:", np.round(predictions[3], 3)[0])
|
129 |
+
|
130 |
+
|
131 |
+
|
132 |
|
133 |
# Display images with predictions
|
134 |
display_images_and_predictions(image_paths, predicted_labels, true_labels)
|