|
a |
|
b/templates/about.html |
|
|
1 |
<!doctype html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
|
|
|
4 |
<body style="background-color:powderblue;"> |
|
|
5 |
<style> |
|
|
6 |
h1 {text-align: center;} |
|
|
7 |
p {text-align: center;} |
|
|
8 |
div {text-align: center;} |
|
|
9 |
img { |
|
|
10 |
max-width:40%; |
|
|
11 |
height:auto; |
|
|
12 |
max-height:40%; |
|
|
13 |
} |
|
|
14 |
</style> |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
<div class="header"> |
|
|
18 |
<h1>Select an image for classification</h1> |
|
|
19 |
<p></p> |
|
|
20 |
</div> |
|
|
21 |
|
|
|
22 |
<p> |
|
|
23 |
{% with messages = get_flashed_messages() %} |
|
|
24 |
{% if messages %} |
|
|
25 |
Label: {{ messages[0] }} |
|
|
26 |
Filename: {{ messages[1] }} |
|
|
27 |
{% endif %} |
|
|
28 |
{% endwith %} |
|
|
29 |
</p> |
|
|
30 |
<form method="post" action="/" enctype="multipart/form-data"> |
|
|
31 |
<dl> |
|
|
32 |
<p> |
|
|
33 |
<input type="file" name="file" autocomplete="off" required> |
|
|
34 |
</p> |
|
|
35 |
</dl> |
|
|
36 |
<p> |
|
|
37 |
<input type="submit" value="Classify"> |
|
|
38 |
|
|
|
39 |
</p> |
|
|
40 |
</form> |
|
|
41 |
</body> |