Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,13 +46,14 @@ elif selection == "Application":
|
|
46 |
if btn_prediction:
|
47 |
predictions = model.predict(image_array)
|
48 |
classes = np.argmax(predictions[0])
|
|
|
49 |
|
50 |
for cle, valeur in covid_classes.items():
|
51 |
if valeur == classes:
|
52 |
st.write("The diagostic is :",cle)
|
53 |
|
54 |
-
|
55 |
-
|
56 |
if __name__ == '__main__':
|
57 |
main()
|
58 |
|
|
|
46 |
if btn_prediction:
|
47 |
predictions = model.predict(image_array)
|
48 |
classes = np.argmax(predictions[0])
|
49 |
+
prediction_proba = model.predict_proba(image_array)
|
50 |
|
51 |
for cle, valeur in covid_classes.items():
|
52 |
if valeur == classes:
|
53 |
st.write("The diagostic is :",cle)
|
54 |
|
55 |
+
st.subheader('Prediction Probability')
|
56 |
+
st.write(prediction_proba)
|
57 |
if __name__ == '__main__':
|
58 |
main()
|
59 |
|