yamunagovindha commited on
Commit
643a008
·
verified ·
1 Parent(s): 4a2f962

Create pages/0_Problem-Statement_and_Aim.py

Browse files
pages/0_Problem-Statement_and_Aim.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import numpy as np
4
+
5
+ # Title with centered alignment
6
+ st.markdown("<h1 style='text-align:center; color:white;'>Problem Statement and Aim for this Project</h1>", unsafe_allow_html=True)
7
+
8
+ # Centered header for the Streamlit app
9
+ st.markdown("<h2 style='text-align:center;'>Analyzing and classifying the heart desease based on stroke.</h2>", unsafe_allow_html=True)
10
+
11
+ st.markdown(
12
+ """
13
+ <div style="text-align: center;">
14
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/674410caadaa0555589a9ec6/3OVCohh6mS6cEaVJtEi7T.jpeg" width="90%" />
15
+ </div>
16
+ """,
17
+ unsafe_allow_html=True
18
+ )
19
+
20
+ # Problem statement section with center alignment
21
+ st.markdown("<h3>Problem Statement and Aim:</h3>", unsafe_allow_html=True)
22
+
23
+ # Text explaining the problem
24
+ st.markdown(
25
+ """
26
+ <div>
27
+ <p><b>Title:</b> Analyzing and predicting the heart desease based on stroke.</ intent Using Machine Learning</p>
28
+ <p><b>Problem Statement:</b> To develop a predictive model to identify the likelihood of a stroke based on patient demographic, medical history, and lifestyle factors.This involves exploring the relationship between features like age, hypertension, heart disease, and other health metrics to accurately classify whether a stroke is likely to occur.</p>
29
+ <p><b>Aim for this project:</b> To analyze healthcare data and identify key risk factors for strokes, enabling early detection and prevention through data analysis and predictive modeling..</p>
30
+ <p><b>Key Objectives:</b></p>
31
+ <ul style="list-style-position: inside;">
32
+ <li>Data Preprocessing, Feature Engineering</li>
33
+ <li>Exploratory Data Analysis</li>
34
+ <li>Model Creation & Evaluation</li>
35
+ </ul>
36
+ </div>
37
+ """,
38
+ unsafe_allow_html=True
39
+ )
40
+
41
+ # Center-aligned image
42
+
43
+
44
+ # Background image with semi-transparent overlay
45
+ background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/clljdAv7f_LGL8dH5vCZQ.jpeg"
46
+
47
+ st.markdown(
48
+ f"""
49
+ <style>
50
+ .stApp {{
51
+ background-image: url("{background_image_url}");
52
+ background-size: cover;
53
+ background-position: center;
54
+ height: 100vh;
55
+ }}
56
+ /* Semi-transparent overlay */
57
+ .stApp::before {{
58
+ content: "";
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ background: rgba(0, 0, 0, 0.4); /* Adjust transparency here (0.4 for 40% transparency) */
65
+ z-index: -1;
66
+ }}
67
+ /* Styling the content to ensure text visibility */
68
+ .stMarkdown {{
69
+ color: white; /* White text to ensure visibility */
70
+ }}
71
+ </style>
72
+ """,
73
+ unsafe_allow_html=True
74
+ )