mohitrajdeo commited on
Commit
fe3e720
Β·
1 Parent(s): 41f1a81

docs: update app.py homepage content and disclaimer

Browse files

Refactor 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.

Files changed (1) hide show
  1. app.py +59 -23
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
- - **🩸 Disease Predictors**:
99
- - Diabetes Prediction
100
- - Hypertension Prediction
101
- - Cardiovascular Disease Prediction
102
- - Stroke Prediction
103
- - Asthma Prediction
104
- - Sleep Health Analysis
105
- # - **βœ… Checkbox-based Lifestyle Disease Predictor** using **BiomedNLP-PubMedBERT**
106
- - **πŸ€– Medical Consultant** (Ask health-related questions)
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
- # **⚠️ Disclaimer:** This application has been developed using **real-world healthcare datasets** sourced from Kaggle:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
- # - [Stroke Prediction Dataset](http://kaggle.com/code/chanchal24/stroke-prediction-using-python/input?select=healthcare-dataset-stroke-data.csv)
128
- # - [Asthma Analysis & Prediction](https://www.kaggle.com/code/bryamblasrimac/asthma-eda-prediction-f2score-85/input)
129
- # - [Diabetes Dataset](https://www.kaggle.com/datasets/mathchi/diabetes-data-set)
130
- # - [Cardiovascular Disease Dataset](https://www.kaggle.com/datasets/sulianova/cardiovascular-disease-dataset)
131
- # - [Sentiment Analysis for Mental Health](https://www.kaggle.com/datasets/suchintikasarkar/sentiment-analysis-for-mental-health)
132
- # - [Sleep Health Analysis](https://www.kaggle.com/datasets/uom190346a/sleep-health-and-lifestyle-dataset)
133
- # \
134
 
135
 
136
- st.markdown("""
137
- The predictions are generated using **machine learning models** trained on these datasets, incorporating **evaluation metrics and graphical insights** to enhance interpretability.
 
 
138
 
139
- 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.
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':