|
a |
|
b/templates/home.html |
|
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html> |
|
|
3 |
<head> |
|
|
4 |
<title>Brain Hemorrhage</title> |
|
|
5 |
<style> |
|
|
6 |
|
|
|
7 |
body { |
|
|
8 |
background: radial-gradient(ellipse at center, #81276f 0%, #090a0f 100%); |
|
|
9 |
height: 100vh; |
|
|
10 |
color: white; |
|
|
11 |
font-family: 'Open Sans', sans-serif; |
|
|
12 |
font-size: 16px; |
|
|
13 |
|
|
|
14 |
} |
|
|
15 |
|
|
|
16 |
h1 { |
|
|
17 |
text-align: center; |
|
|
18 |
font-weight: bold; |
|
|
19 |
font-size: 36px; |
|
|
20 |
margin-top: 50px; |
|
|
21 |
margin-bottom: 30px; |
|
|
22 |
text-shadow: 2px 2px #000000; |
|
|
23 |
animation: pulse 1s ease-in-out infinite alternate; |
|
|
24 |
} |
|
|
25 |
|
|
|
26 |
@keyframes pulse { |
|
|
27 |
from {transform: scale(1);} |
|
|
28 |
to {transform: scale(1.05);} |
|
|
29 |
} |
|
|
30 |
|
|
|
31 |
.row { |
|
|
32 |
display: flex; |
|
|
33 |
padding: 10px; |
|
|
34 |
justify-content: center; |
|
|
35 |
align-items: center; |
|
|
36 |
margin-top: 50px; |
|
|
37 |
} |
|
|
38 |
|
|
|
39 |
.column { |
|
|
40 |
width: 30%; |
|
|
41 |
margin: 1%; |
|
|
42 |
background-color: #1d1f24; |
|
|
43 |
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5); |
|
|
44 |
border-radius: 10px; |
|
|
45 |
padding: 20px; |
|
|
46 |
transition: all 0.3s ease-in-out; |
|
|
47 |
animation: slide-in 0.5s ease-in-out forwards; |
|
|
48 |
} |
|
|
49 |
|
|
|
50 |
@keyframes slide-in { |
|
|
51 |
from {transform: translateX(-100%);} |
|
|
52 |
to {transform: translateX(0);} |
|
|
53 |
} |
|
|
54 |
|
|
|
55 |
.column:hover { |
|
|
56 |
transform: scale(1.05); |
|
|
57 |
box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.7); |
|
|
58 |
} |
|
|
59 |
|
|
|
60 |
input[type=submit], input[type=file]{ |
|
|
61 |
width: 100%; |
|
|
62 |
border:1px solid #ffffff; |
|
|
63 |
color: white; |
|
|
64 |
background-color: transparent; |
|
|
65 |
padding:14px 0; |
|
|
66 |
margin-top: 15px; |
|
|
67 |
margin-bottom: 15px; |
|
|
68 |
border: none; |
|
|
69 |
border-radius: 4px; |
|
|
70 |
cursor: pointer; |
|
|
71 |
transition: all 0.3s ease-in-out; |
|
|
72 |
} |
|
|
73 |
|
|
|
74 |
input[type=submit]{ |
|
|
75 |
border:1px solid #ffffff; |
|
|
76 |
} |
|
|
77 |
|
|
|
78 |
input[type=submit]:hover{ |
|
|
79 |
background-color: #ffffff; |
|
|
80 |
color: black; |
|
|
81 |
transform: scale(1.1); |
|
|
82 |
} |
|
|
83 |
|
|
|
84 |
h3{ |
|
|
85 |
border-bottom:1px solid #ffffff; |
|
|
86 |
padding-bottom: 10px; |
|
|
87 |
text-align: center; |
|
|
88 |
margin-bottom: 20px; |
|
|
89 |
text-shadow: 2px 2px #000000; |
|
|
90 |
} |
|
|
91 |
|
|
|
92 |
p { |
|
|
93 |
margin-bottom: 5px; |
|
|
94 |
font-size: 18px; |
|
|
95 |
font-weight: bold; |
|
|
96 |
text-align: center; |
|
|
97 |
text-shadow: 2px 2px #000000; |
|
|
98 |
} |
|
|
99 |
|
|
|
100 |
.status-healthy { |
|
|
101 |
color: green; |
|
|
102 |
} |
|
|
103 |
|
|
|
104 |
.status-unhealthy { |
|
|
105 |
color: red; |
|
|
106 |
} |
|
|
107 |
|
|
|
108 |
.img-wrapper { |
|
|
109 |
position: relative; |
|
|
110 |
width: 100%; |
|
|
111 |
overflow: hidden; |
|
|
112 |
border-radius: 10px; |
|
|
113 |
} |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
.img-wrapper::before { |
|
|
117 |
content: ""; |
|
|
118 |
display: block; |
|
|
119 |
padding-top: 56.25%; |
|
|
120 |
} |
|
|
121 |
|
|
|
122 |
.img-wrapper img { |
|
|
123 |
position: absolute; |
|
|
124 |
top: 0; |
|
|
125 |
left: 0; |
|
|
126 |
width: 100%; |
|
|
127 |
height: 100%; |
|
|
128 |
object-fit: cover; |
|
|
129 |
transition: all 0.3s ease-in-out; |
|
|
130 |
transform: scale(1); |
|
|
131 |
} |
|
|
132 |
|
|
|
133 |
.img-wrapper img:hover { |
|
|
134 |
transform: scale(1.1); |
|
|
135 |
} |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
</style> |
|
|
139 |
</head> |
|
|
140 |
<body> |
|
|
141 |
<h1>BRAIN HEMORRHAGE DETECTION</h1> |
|
|
142 |
<div class="row"> |
|
|
143 |
<div class="column"> |
|
|
144 |
<h3>Select Image</h3> |
|
|
145 |
<form action="{{url_for('image')}}" method="POST" style="display: flex;"> |
|
|
146 |
<input type="file" id="file" name="filename" required> |
|
|
147 |
<input type="submit" value="Analyse"> |
|
|
148 |
</form> |
|
|
149 |
</div> |
|
|
150 |
<div class="column"> |
|
|
151 |
<h3>Original</h3> |
|
|
152 |
{% if (ImageDisplay) %} |
|
|
153 |
<img src="{{ImageDisplay}}" width="100%"> |
|
|
154 |
{% endif %} |
|
|
155 |
</div> |
|
|
156 |
<div class="column"> |
|
|
157 |
<h3>Answer</h3> |
|
|
158 |
{% if (status) %} |
|
|
159 |
{% if status == "Healthy" %} |
|
|
160 |
<p><b>Status: </b>Healthy</p> |
|
|
161 |
{% else %} |
|
|
162 |
<p><b>Status: </b>{{status}}</p> |
|
|
163 |
<p><b>Accuracy:</b>{{accuracy}}</p> |
|
|
164 |
<!-- <p><b>Disease Name: </b>{{disease}}</p> |
|
|
165 |
<p><b>{{remedie}}</b></p> |
|
|
166 |
{% for remedie in remedie1 %} |
|
|
167 |
<ul> |
|
|
168 |
<li>{{remedie}}</li> |
|
|
169 |
</ul> |
|
|
170 |
{% endfor %} --> |
|
|
171 |
{% endif %} |
|
|
172 |
{% endif %} |
|
|
173 |
</div> |
|
|
174 |
</div> |
|
|
175 |
<script> |
|
|
176 |
/* script goes here */ |
|
|
177 |
</script> |
|
|
178 |
</body> |
|
|
179 |
</html> |