Update app.py
Browse files
app.py
CHANGED
|
@@ -216,6 +216,9 @@ with st.container():
|
|
| 216 |
if st.button("🔍 Predict", key="predict", help="Click to see your personality"):
|
| 217 |
prediction = knn.predict(final_input)[0]
|
| 218 |
proba = knn.predict_proba(final_input)[0]
|
|
|
|
|
|
|
|
|
|
| 219 |
label = prediction_labels.get(prediction, "❓ Unknown")
|
| 220 |
confidence = proba[prediction] * 100
|
| 221 |
|
|
|
|
| 216 |
if st.button("🔍 Predict", key="predict", help="Click to see your personality"):
|
| 217 |
prediction = knn.predict(final_input)[0]
|
| 218 |
proba = knn.predict_proba(final_input)[0]
|
| 219 |
+
st.write("Prediction:", prediction)
|
| 220 |
+
st.write("proba",proba)
|
| 221 |
+
|
| 222 |
label = prediction_labels.get(prediction, "❓ Unknown")
|
| 223 |
confidence = proba[prediction] * 100
|
| 224 |
|