[32b2c5]: / templates / home.html

Download this file

179 lines (157 with data), 4.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
 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
<!DOCTYPE html>
<html>
<head>
<title>Brain Hemorrhage</title>
<style>
body {
background: radial-gradient(ellipse at center, #81276f 0%, #090a0f 100%);
height: 100vh;
color: white;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
}
h1 {
text-align: center;
font-weight: bold;
font-size: 36px;
margin-top: 50px;
margin-bottom: 30px;
text-shadow: 2px 2px #000000;
animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse {
from {transform: scale(1);}
to {transform: scale(1.05);}
}
.row {
display: flex;
padding: 10px;
justify-content: center;
align-items: center;
margin-top: 50px;
}
.column {
width: 30%;
margin: 1%;
background-color: #1d1f24;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
border-radius: 10px;
padding: 20px;
transition: all 0.3s ease-in-out;
animation: slide-in 0.5s ease-in-out forwards;
}
@keyframes slide-in {
from {transform: translateX(-100%);}
to {transform: translateX(0);}
}
.column:hover {
transform: scale(1.05);
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.7);
}
input[type=submit], input[type=file]{
width: 100%;
border:1px solid #ffffff;
color: white;
background-color: transparent;
padding:14px 0;
margin-top: 15px;
margin-bottom: 15px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
input[type=submit]{
border:1px solid #ffffff;
}
input[type=submit]:hover{
background-color: #ffffff;
color: black;
transform: scale(1.1);
}
h3{
border-bottom:1px solid #ffffff;
padding-bottom: 10px;
text-align: center;
margin-bottom: 20px;
text-shadow: 2px 2px #000000;
}
p {
margin-bottom: 5px;
font-size: 18px;
font-weight: bold;
text-align: center;
text-shadow: 2px 2px #000000;
}
.status-healthy {
color: green;
}
.status-unhealthy {
color: red;
}
.img-wrapper {
position: relative;
width: 100%;
overflow: hidden;
border-radius: 10px;
}
.img-wrapper::before {
content: "";
display: block;
padding-top: 56.25%;
}
.img-wrapper img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: all 0.3s ease-in-out;
transform: scale(1);
}
.img-wrapper img:hover {
transform: scale(1.1);
}
</style>
</head>
<body>
<h1>BRAIN HEMORRHAGE DETECTION</h1>
<div class="row">
<div class="column">
<h3>Select Image</h3>
<form action="{{url_for('image')}}" method="POST" style="display: flex;">
<input type="file" id="file" name="filename" required>
<input type="submit" value="Analyse">
</form>
</div>
<div class="column">
<h3>Original</h3>
{% if (ImageDisplay) %}
<img src="{{ImageDisplay}}" width="100%">
{% endif %}
</div>
<div class="column">
<h3>Answer</h3>
{% if (status) %}
{% if status == "Healthy" %}
<p><b>Status: </b>Healthy</p>
{% else %}
<p><b>Status: </b>{{status}}</p>
<p><b>Accuracy:</b>{{accuracy}}</p>
<!-- <p><b>Disease Name: </b>{{disease}}</p>
<p><b>{{remedie}}</b></p>
{% for remedie in remedie1 %}
<ul>
<li>{{remedie}}</li>
</ul>
{% endfor %} -->
{% endif %}
{% endif %}
</div>
</div>
<script>
/* script goes here */
</script>
</body>
</html>