[aff7eb]: / templates / results.html

Download this file

79 lines (77 with data), 2.2 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
<!DOCTYPE html>
<html>
<head>
<title>Prediction Results</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous">
<style>
.container {
margin-top: 50px;
text-align: center;
}
h1 {
margin-bottom: 30px;
}
.alert {
margin-top: 50px;
font-size: 24px;
font-weight: bold;
text-align: center;
padding: 20px;
border-radius: 10px;
}
.alert-success {
color: #155724;
background-color: #d4edda;
border-color: #c3e6cb;
}
.alert-warning {
color: #856404;
background-color: #fff3cd;
border-color: #ffeeba;
}
.alert-danger {
color: #721c24;
background-color: #f8d7da;
border-color: #f5c6cb;
}
p {
margin-top: 30px;
font-size: 18px;
font-weight: bold;
text-align: center;
}
.consult-doctor {
color: #dc3545;
text-decoration: underline;
cursor: pointer;
}
</style>
<link rel="icon" type="image/x-icon" href="https://img.icons8.com/color-glass/48/lungs.png">
</head>
<script>
// Set the value of the outcome variable
var outcome = "High";
</script>
<body>
<div class="container">
<h1>Prediction Results</h1>
{% if outcome == 'Low' %}
<div class="alert alert-success" role="alert">
The predicted level of Lung Cancer is Low.
</div>
{% elif outcome == 'Medium' %}
<div class="alert alert-warning" role="alert">
The predicted level of Lung Cancer is Medium.
</div>
{% else %}
<div class="alert alert-danger" role="alert">
The predicted level of Lung Cancer is High.
</div>
{% endif %}
<p>If you have any concerns about your lung health, please consult a doctor.</p>
<p>Click <a href="https://www.google.com/maps/search/lung+cancer+doctors/" class="consult-doctor">here</a> to find a doctor near you.</p>
</div>
</body>
</html>