[06cc32]: / templates / GI result.html

Download this file

139 lines (125 with data), 4.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prediction Result</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: linear-gradient(to right, #8e2de2, #4a00e0);
color: #fff;
}
.result-box {
background-color: rgba(200, 240, 196, 0.85);
color: #040404;
padding: 20px 50px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
text-align: center;
max-width: 600px;
margin: 40px;
}
.result-box h2 {
margin-bottom: 15px;
font-size: 2rem;
color: #333;
}
.result-message {
font-size: 20px;
font-weight: bold;
margin-bottom: 20px;
color: #444;
}
.additional-details {
font-size: 18px;
color: #555;
margin-top: 10px;
}
.logo {
width: 150px;
height: auto;
margin-bottom: 20px;
}
.back-to-home-btn {
background-color: hsl(286, 64%, 80%);
color: #000000;
font-size: 18px;
font-weight: bold;
padding: 12px 25px;
border-radius: 8px;
text-decoration: none;
transition: background-color 0.3s ease;
margin-top: 20px;
}
.back-to-home-btn:hover {
background-color: #f0f0f0;
color: #333;
}
.btn-home {
background-color: #000000; /* Black color */
color: white;
height: 50px;
width: 100px;
padding: 4px 4px; /* Smaller padding */
font-size: 26px; /* Smaller font size */
border-radius: 5px;
margin-top: 1px;
margin-bottom: -32px;
display: block;
margin-left: auto;
margin-right: auto;
text-decoration: none; /* Remove underline */
text-align: center;
}
.btn-home:hover {
background-color: #333333; /* Darker shade of black on hover */
color: white; /* Keep text white on hover */
text-decoration: none; /* Remove underline on hover */
}
</style>
</head>
<body>
<header>
<img src="../images/NEWLOGO.png" alt="Logo" class="logo">
</header>
<div>
<a href="/" class="btn-home">Home</a> <!-- Link to the home page -->
</div>
<div class="result-box">
<h2>Prediction Result</h2>
{% if prediction_result == 0 %}
<div class="result-message">The predicted class is: <strong>dyed-lifted-polyps</strong></div>
{% elif prediction_result == 1 %}
<div class="result-message">The predicted class is: <strong>dyed-resection-margins</strong></div>
{% elif prediction_result == 2 %}
<div class="result-message">The predicted class is: <strong>esophagitis</strong></div>
{% elif prediction_result == 3 %}
<div class="result-message">The predicted class is: <strong>normal-cecum</strong></div>
{% elif prediction_result == 4 %}
<div class="result-message">The predicted class is: <strong>normal-pylorus</strong></div>
{% elif prediction_result == 5 %}
<div class="result-message">The predicted class is: <strong>normal-z-line</strong></div>
{% elif prediction_result == 6 %}
<div class="result-message">The predicted class is: <strong>polyps</strong></div>
{% elif prediction_result == 7 %}
<div class="result-message">The predicted class is: <strong>ulcerative-colitis</strong></div>
{% else %}
<div class="result-message">Invalid result. Please try again.</div>
{% endif %}
<p class="additional-details">
Predicted class ID: <strong>{{ prediction_result }}</strong><br>
Suggested action: Consult a gastroenterologist if required.
</p>
</div>
<div>
<a href="GI diseases.html" class="back-to-home-btn">Upload Another Image</a>
</div>
</body>
</html>