Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,11 @@ if st.button('Predict'):
|
|
46 |
# Perform the prediction
|
47 |
predicted_label, confidence = ensemble_predict(sentence)
|
48 |
|
49 |
-
|
50 |
-
st.
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
|
54 |
st.info("Remember: This prediction is not a diagnosis. Our method is designed to support, not replace, mental health professionals. The model's predictions should be used as a reference, and the final diagnosis should be made by a qualified professional to avoid potential biases and inaccuracies.")
|
|
|
46 |
# Perform the prediction
|
47 |
predicted_label, confidence = ensemble_predict(sentence)
|
48 |
|
49 |
+
# Display the result with custom styling
|
50 |
+
st.markdown(f"""
|
51 |
+
<h2 style='text-align: center; color: #1E90FF;'>Prediction Results</h2>
|
52 |
+
<p style='font-size: 24px; font-weight: bold;'>Result: <span style='color: #1E90FF;'>{predicted_label}</span></p>
|
53 |
+
<p style='font-size: 24px; font-weight: bold;'>Confidence: <span style='color: #1E90FF;'>{confidence:.2f}</span></p>
|
54 |
+
""", unsafe_allow_html=True)
|
55 |
|
56 |
st.info("Remember: This prediction is not a diagnosis. Our method is designed to support, not replace, mental health professionals. The model's predictions should be used as a reference, and the final diagnosis should be made by a qualified professional to avoid potential biases and inaccuracies.")
|