-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
141 lines (119 loc) · 3.14 KB
/
index.html
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
<!doctype html>
<head>
<title>Edible Wild Plants</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="spinkit.css" />
</head>
<style>
.pred-container {
margin-bottom: 20px;
}
.pred-container > div {
display: inline-block;
margin-right: 20px;
vertical-align: top;
}
.row {
display: table-row;
}
.cell {
display: table-cell;
padding-right: 20px;
}
#file-container {
margin-bottom: 20px;
}
#imgfile {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
#imgfile + label {
cursor: pointer;
pointer-events: auto;
z-index: 10;
}
#imgfile:focus + label {
outline: 1px dotted #000;
outline: -webkit-focus-ring-color auto 5px;
}
#placeholder {
max-width: 100%;
}
@media(min-width: 992px) {
#placeholder {
max-width: 700px;
}
}
#result-section {
padding: 5px;
}
#prediction-result .prediction-top1 {
font-weight: bold;
font-size: 125%;
}
#prediction-result {
font-size: 75%;
}
</style>
<body>
<div class="tfjs-example-container">
<section class='title-area'>
<h1>JKT1-D: Edible Wild Plants</h1>
</section>
<section>
<!-- <p class='section-head'>Description</p> -->
<!-- <p>
This demo uses the Keras with 7 Layers of Conv2D, to learn xray images and predict pneumonia.
Dataset source from <a
href="https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia">Kaggle</a>.
</p> -->
<p>
A simple tool to help you live the wild life.
</p>
</section>
<section id='status'>
<p class='section-head'>Status</p>
<div style='margin: 20px auto 0;'>Please wait, loading model...</div>
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</section>
<section>
<!-- <p>Take/choose a picture</p> -->
<div id='imgfile-container' style='margin: 0 auto;display: none;'>
<input id='imgfile' type="file" accept="image/*">
<label for='imgfile' class='mdc-button mdc-button--unelevated'>
<span class="mdc-button__ripple"></span> Choose Image
</label>
</div>
</section>
<section id='result-section' style='display: none;'>
<p class='section-head'>Prediction Result</p>
<div class='loading'>
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<span class='mdc-typography mdc-typography--caption'
style='display: table; margin: 10px auto;'>
Running prediction...
</span>
</div>
<div style='display: table; margin: auto;'>
<div id='prediction-result' class='mdc-typography mdc-typography--body'></div>
<img id='placeholder' />
</div>
</section>
<script src="lib.js"></script>
<script src="index.js"></script>
</div>
</body>