-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (41 loc) · 1.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Image Classifier</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.selectorDiv {
padding: 1em;
}
.imageDiv {
padding: 10px;
height: 234px;
width: 234px;
border: 1px solid black;
}
.predictionDiv {
padding: 1em;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"> </script>
<script src="mobilenet/index.js"></script>
</head>
<body>
<div class="loadingDiv">Loading Model...</div>
<!-- <img src="https://raw.githubusercontent.com/shivangidas/image-classifier/master/cat.jpg" alt="cat" id="imageSrc" crossorigin="anonymous" /> -->
<div class="selectorDiv">
<input type="file" id="inputImage" onchange="readURL(this)" disabled>
</div>
<div class="imageDiv">
<img src="" alt="Selected image will appear here" id="imageSrc" />
</div>
<div class="predictionDiv">
<h2>Predictions</h2>
<ol class="predictionList"></ol>
</div>
<a href="https://shivangidas.github.io/blog" target="_blank">Link to my website</a>
</body>
</html>