mohitrajdeo
commited on
Commit
Β·
fe3e720
1
Parent(s):
41f1a81
docs: update app.py homepage content and disclaimer
Browse filesRefactor the homepage content to improve clarity and readability, and update the disclaimer to provide more detailed information about the tool's purpose and limitations. Removed redundant commented-out code to keep the file clean.
app.py
CHANGED
@@ -90,21 +90,21 @@ def safe_float(value, default=0.0):
|
|
90 |
if selected == 'Home':
|
91 |
st.title("π©Ί Early Prediction of Health & Lifestyle Diseases")
|
92 |
|
|
|
93 |
st.markdown("""
|
94 |
## Welcome to the **Early Prediction of Health & Lifestyle Diseases**!
|
95 |
This tool provides **early prediction and analysis** for various health conditions using **Machine Learning & NLP**.
|
96 |
|
97 |
### π₯ Available Features:
|
98 |
-
-
|
99 |
-
- Diabetes
|
100 |
-
- Hypertension
|
101 |
-
- Cardiovascular Disease
|
102 |
-
-
|
103 |
-
-
|
104 |
-
|
105 |
-
|
106 |
-
- **π€
|
107 |
-
# - **π§ Mental Health Assessment**
|
108 |
- **π Data Visualizer** (Analyze trends in health conditions)
|
109 |
|
110 |
π Select an option from the sidebar to proceed!
|
@@ -118,26 +118,62 @@ if selected == 'Home':
|
|
118 |
4. View personalized **health insights & recommendations**.
|
119 |
""")
|
120 |
|
121 |
-
|
122 |
# Disclaimer Section
|
123 |
st.markdown("---")
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
# st.markdown("""
|
125 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
#
|
128 |
-
#
|
129 |
-
#
|
130 |
-
#
|
131 |
-
#
|
132 |
-
#
|
133 |
-
#
|
134 |
|
135 |
|
136 |
-
|
137 |
-
|
|
|
|
|
138 |
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
|
143 |
if selected == 'Diabetes Prediction':
|
|
|
90 |
if selected == 'Home':
|
91 |
st.title("π©Ί Early Prediction of Health & Lifestyle Diseases")
|
92 |
|
93 |
+
|
94 |
st.markdown("""
|
95 |
## Welcome to the **Early Prediction of Health & Lifestyle Diseases**!
|
96 |
This tool provides **early prediction and analysis** for various health conditions using **Machine Learning & NLP**.
|
97 |
|
98 |
### π₯ Available Features:
|
99 |
+
- **β
Disease Predictors**:
|
100 |
+
- Diabetes
|
101 |
+
- Hypertension
|
102 |
+
- Cardiovascular Disease
|
103 |
+
- Asthma
|
104 |
+
- Stroke
|
105 |
+
- **π Sleep Health Analysis**
|
106 |
+
- **π§ Mental Health Assessment**
|
107 |
+
- **π€ AI Chatbot for Health Assistance**
|
|
|
108 |
- **π Data Visualizer** (Analyze trends in health conditions)
|
109 |
|
110 |
π Select an option from the sidebar to proceed!
|
|
|
118 |
4. View personalized **health insights & recommendations**.
|
119 |
""")
|
120 |
|
|
|
121 |
# Disclaimer Section
|
122 |
st.markdown("---")
|
123 |
+
st.markdown("""
|
124 |
+
The predictions are generated using **machine learning models** trained on real-world healthcare datasets, incorporating **evaluation metrics and graphical insights** to enhance interpretability.
|
125 |
+
|
126 |
+
However, this tool has **not undergone clinical validation** and should be used **for informational and educational purposes only**. It is not intended to serve as a substitute for professional medical diagnosis or treatment. Always consult a qualified healthcare provider for medical advice.
|
127 |
+
""")
|
128 |
+
|
129 |
# st.markdown("""
|
130 |
+
# ## Welcome to the **Early Prediction of Health & Lifestyle Diseases**!
|
131 |
+
# This tool provides **early prediction and analysis** for various health conditions using **Machine Learning & NLP**.
|
132 |
+
|
133 |
+
# ### π₯ Available Features:
|
134 |
+
# - **π©Έ Disease Predictors**:
|
135 |
+
# - Diabetes Prediction
|
136 |
+
# - Hypertension Prediction
|
137 |
+
# - Cardiovascular Disease Prediction
|
138 |
+
# - Stroke Prediction
|
139 |
+
# - Asthma Prediction
|
140 |
+
# - Sleep Health Analysis
|
141 |
+
# # - **β
Checkbox-based Lifestyle Disease Predictor** using **BiomedNLP-PubMedBERT**
|
142 |
+
# - **π€ Medical Consultant** (Ask health-related questions)
|
143 |
+
# # - **π§ Mental Health Assessment**
|
144 |
+
# - **π Data Visualizer** (Analyze trends in health conditions)
|
145 |
+
|
146 |
+
# π Select an option from the sidebar to proceed!
|
147 |
+
# """)
|
148 |
|
149 |
+
# with st.expander("π Quick Start Guide"):
|
150 |
+
# st.write("""
|
151 |
+
# 1. Select a **health prediction model** from the sidebar.
|
152 |
+
# 2. Enter your details in the input fields.
|
153 |
+
# 3. Click **Predict** to get your result.
|
154 |
+
# 4. View personalized **health insights & recommendations**.
|
155 |
+
# """)
|
156 |
|
157 |
|
158 |
+
# # Disclaimer Section
|
159 |
+
# st.markdown("---")
|
160 |
+
# # st.markdown("""
|
161 |
+
# # **β οΈ Disclaimer:** This application has been developed using **real-world healthcare datasets** sourced from Kaggle:
|
162 |
|
163 |
+
# # - [Stroke Prediction Dataset](http://kaggle.com/code/chanchal24/stroke-prediction-using-python/input?select=healthcare-dataset-stroke-data.csv)
|
164 |
+
# # - [Asthma Analysis & Prediction](https://www.kaggle.com/code/bryamblasrimac/asthma-eda-prediction-f2score-85/input)
|
165 |
+
# # - [Diabetes Dataset](https://www.kaggle.com/datasets/mathchi/diabetes-data-set)
|
166 |
+
# # - [Cardiovascular Disease Dataset](https://www.kaggle.com/datasets/sulianova/cardiovascular-disease-dataset)
|
167 |
+
# # - [Sentiment Analysis for Mental Health](https://www.kaggle.com/datasets/suchintikasarkar/sentiment-analysis-for-mental-health)
|
168 |
+
# # - [Sleep Health Analysis](https://www.kaggle.com/datasets/uom190346a/sleep-health-and-lifestyle-dataset)
|
169 |
+
# # \
|
170 |
+
|
171 |
+
|
172 |
+
# st.markdown("""
|
173 |
+
# The predictions are generated using **machine learning models** trained on these datasets, incorporating **evaluation metrics and graphical insights** to enhance interpretability.
|
174 |
+
|
175 |
+
# However, this tool has **not undergone clinical validation** and should be used **for informational and educational purposes only**. It is not intended to serve as a substitute for professional medical diagnosis or treatment. Always consult a qualified healthcare provider for medical advice.
|
176 |
+
# """)
|
177 |
|
178 |
|
179 |
if selected == 'Diabetes Prediction':
|