-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
45 lines (39 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cat Dog Classifier in Javascript</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/static/classifier.css" />
</head>
<body>
<div class="main">
<div class="title">
<h3>Cat Dog Classifier in Javascript</h3>
</div>
</div>
<div class="panel">
<input id="file-upload" class="hidden" type="file" accept="image/x-png,image/gif,image/jpeg" />
<label for="file-upload" id="file-drag" class="upload-box">
<div id="upload-caption">Drop image here or click to select</div>
<img id="image-preview" class="hidden" />
</label>
</div>
<div class="button_group">
<input type="button" value="Clear" class="button" onclick="clearImage();" />
<input type="button" value="Predict" class="button" onclick="predict();" />
</div>
<div id="image-box">
<img id="image-display" />
<svg id="loader" class="hidden" viewBox="0 0 32 32" width="32" height="32">
<circle id="spinner" cx="16" cy="16" r="14" fill="none"></circle>
</svg>
</div>
<div style="text-align: center;font-weight: 900;" id="pred-result2" class="hidden"></div>
</body>
<footer>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist/tf.min.js"> </script>
<script src="/static/classifier.js"></script>
</footer>
</html>