-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
224 lines (178 loc) · 6.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heart-Disease-Prediction</title>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<h2>Heart Disease Predictive analysis</h2>
<form action="{{ url_for('predict')}}" method="post">
<div class="body_form">
<div class="left_side">
<h3>Slope of peak Exercise St Segment</h3>
<input id="first" name="sop" type="number ">
<br><br>
<h3>What is Resting Blood Pressure?</h3><input id="second" name="resting_bp" required="required">
<br><br>
<h3>Type of chest pain?(1 or 2 or 3 or 4)</h3><input id="third" name="cpt" required="required" >
<br><br>
<h3>Major Blood vessels of The Heart(0 or 1 or 2 or3) ?</h3><input id="fourth" name="major_vessels" required="required">
<br><br>
<h3>Serum Cholesterol</h3><input id="fifth" name="serum_cholesterol" required="required">
<br><br>
<h3>Old Peak ST Depression?</h3><input id="sixth" name="oldpeak_st_depression" required="required">
<br><br>
<h3>Age</h3><input id="seventh" name="age" required="required">
<br><br>
<h3>Max Heart Rate</h3><input id="eighth" name="max_heart_rate" required="required">
</div>
<div class="right_side">
<h3>What Is the Thal(Blood Disorder)?</h3><select name="thal_normal" id="dropdown" required="required">
<option value="normal">Normal</option>
<option value="reversible_defect">Reversible Defect</option>
<option value="fixed_defect">Fixed Defect </option>
</select>
<p/>
<h3>Fasting Blood Sugar (0=False or 1=True)</h3><select name="fasting_blood_sugar" id="dropdown" required="required">
<option value="0">0</option>
<option value="1">1</option>
</select>
<p/>
<h3>Sex (0=Female or 1=Male)</h3><select name="sex" id="dropdown" required="required">
<option value="0">0</option>
<option value="1">1</option>
</select>
<p/>
<h3>Exercise Induced Angina (0=No or 1=Yes)</h3><select name="exercise_induced_angina" id="dropdown" required="required">
<option value="0">0</option>
<option value="1">1</option>
</select>
<p/>
<h3>Resting EKG Result </h3><select name="ekg_result" id="dropdown" required="required">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
<p></p><button id="sub" type="submit ">Predict The Patient</button>
<br>
</div>
</div>
</form>
<br><br><h3>{{pred}}<h3>
<style>
body {
text-align: left;
padding: 16px 32px;
background-color: #ffffff
}
.body_form {
display: flex;
}
.left_side {
color: black;
width: 50%;
}
.right_side {
color: black;
width: 50%;
}
h3 {
font-weight: normal;
}
#research {
font-size: 18px;
width: 100px;
height: 23px;
top: 23px;
}
#box {
border-radius: 12px;
border-color: 45px;
border-style: solid;
font-family: cursive;
text-align: center;
background-color: rgb(168, 131, 61);
font-size: medium;
position: absolute;
width: 700px;
bottom: 9%;
height: 850px;
right: 30%;
padding: 0px;
margin: 0px;
font-size: 14px;
}
#fuel {
width: 240px;
height: 43px;
text-align: center;
border-radius: 12px;
font-size: 20px;
}
#fuel:hover {
background-color: corel;
}
#research {
width: 99px;
height: 43px;
text-align: center;
border-radius: 12px;
font-size: 18px;
}
#research:hover {
background-color: coral;
}
#dropdown {
width: 240px;
height: 43px;
text-align: center;
border-radius: 12px;
font-size: 18px;
}
#resea:hover {
background-color: coral;
}
#sub {
height: 60px;
width: 240px;
margin: 64px 0px;
padding: 10px 16px;
text-align: center;
border-radius: 10px;
background-color: royalblue;
color: white;
font-size: 18px;
}
#sub:hover {
background-color: SlateBlue;
cursor:pointer;
}
#first {
border-radius: 4px;
height: 40px;
font-size: 20px;
text-align: center;
}
#second {
border-radius: 4px;
height: 40px;
font-size: 20px;
text-align: center;
}
#third {
border-radius: 4px;
height: 40px;
font-size: 20px;
text-align: center;
}
#fourth {
border-radius: 4px;
height: 40px;
font-size: 20px;
text-align: center;
}
</style>
</body>
</html>