-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
313 lines (302 loc) · 8.83 KB
/
Copy pathindex.html
File metadata and controls
313 lines (302 loc) · 8.83 KB
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>ML API</title>
<style>
/* CSS code for button */
body {
background-image: url("hospital.jpg");
background-repeat: no-repeat;
font-size: 16px;
background-attachment: fixed;
background-size: cover;
align-items: center;
}
img {
display: block;
margin: auto;
}
/* CSS code for button */
.button_css {
color: #020202;
margin: 20px;
text-transform: uppercase;
text-decoration: none;
background: #2c92c5;
padding: 2px;
border: 2px solid #3a3a3a !important;
display: inline-block;
transition: all 0.4s ease 0s;
}
.button_css:hover {
color: #1e800c !important;
background: #218126;
/* border-color: #f6b93b !important; */
/* transition: all 0.4s ease 0s; */
}
/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
body {
font-size: 14px;
/* other styles for small screens */
}
}
</style>
</head>
<body>
<!-- Show Indian AI Hospital banner-->
<div>
<img
src="cancer.png"
class="center"
alt="cancer image"
style="width: 90%"
/>
</div>
<div class="login">
<!-- Get input for predict the cancer -->
<center style="margin: 30px; padding: 30px">
<form action="{{url_for('predict')}}" method="POST">
<h1>Enter the values for prediction</h1>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_radius"
placeholder="mean radius"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_texture"
placeholder="mean texture"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_perimeter"
placeholder="mean perimeter"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_area"
placeholder="mean area"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_smoothness"
placeholder="mean smoothness"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_compactness"
placeholder="mean compactness"
required="required"
/>
<br />
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_concavity"
placeholder="mean concavity"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_concave_points"
placeholder="mean concave points"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_symmetry"
placeholder="mean symmetry"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="mean_fractal_dimension"
placeholder="mean fractal dimension"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="radius_error"
placeholder="radius error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="texture_error"
placeholder="texture error"
required="required"
/>
<br />
<input
type="text"
style="margin: 10px; padding: 5px"
name="perimeter_error"
placeholder="perimeter error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="area_error"
placeholder="area error "
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
style="margin: 10px; padding: 5px"
name="smoothness_error"
placeholder="smoothness error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="compactness_error"
placeholder="compactness error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="concavity_error"
placeholder="concavity error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="concave_points_error"
placeholder="concave points error"
required="required"
/>
<br />
<input
type="text"
style="margin: 10px; padding: 5px"
name="symmetry_error"
placeholder="symmetry error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="fractal_dimension_error"
placeholder="fractal dimension error"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_radius"
placeholder="worst radius"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_texture"
placeholder="worst texture"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_perimeter"
placeholder="worst perimeter"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_area"
placeholder="worst area"
required="required"
/>
<br />
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_smoothness"
placeholder="worst smoothness"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_compactness"
placeholder="worst compactness"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_concavity"
placeholder="worst concavity"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_concave_points"
placeholder="worst concave points"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_symmetry"
placeholder="'worst symmetry"
required="required"
/>
<input
type="text"
style="margin: 10px; padding: 5px"
name="worst_fractal_dimension"
placeholder="worst fractal dimension"
required="required"
/>
<br />
<br />
<!-- Show button -->
<div class="button_cont" align="center">
<a
class="button_css"
href="./predict"
target="_blank"
rel="nofollow noopener"
>
<button type="submit" class="btn btn-primary btn-block btn-large">
<strong>Predict Result</strong>
</button></a
>
</div>
</form>
</center>
<!-- Show predicted output using ML model -->
<div>
<center>
<h1>Result to be shown here :</h1>
</center>
</div>
</div>
</body>
</html>