mavinsao commited on
Commit
feabd2f
1 Parent(s): 43f3fd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -46,27 +46,9 @@ if st.button('Predict'):
46
  # Perform the prediction
47
  predicted_label, confidence = ensemble_predict(sentence)
48
 
49
- # CSS injection to target the labels
50
- st.markdown("""
51
- <style>
52
- div[data-testid="metric-container"] {
53
- font-weight: bold;
54
- font-size: 18px; /* Adjust the font size as desired */
55
- }
56
- </style>
57
- """, unsafe_allow_html=True)
58
-
59
  # Display the result
60
  st.write("Result:", predicted_label)
61
  st.write("Confidence:", confidence)
62
 
63
 
64
- # Additional reminder after prediction
65
- st.info("Remember: This prediction is not a diagnosis. Always consult with a healthcare professional for proper evaluation and advice.")
66
-
67
- # Additional information
68
- st.markdown("""
69
- ### About Our Method
70
-
71
- Our method is designed to assist mental health professionals, such as psychologists and psychiatrists, rather than replace them. Using our model to directly calculate mental illness labels can introduce biases, potentially leading to inaccurate diagnoses. Therefore, the predictions made by our model should only be used as a reference, with the final diagnosis being carefully determined by qualified professionals.
72
- """)
 
46
  # Perform the prediction
47
  predicted_label, confidence = ensemble_predict(sentence)
48
 
 
 
 
 
 
 
 
 
 
 
49
  # Display the result
50
  st.write("Result:", predicted_label)
51
  st.write("Confidence:", confidence)
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.")