-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (28 loc) · 893 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Image classifer</title>
<!-- Load the latest version of TensorFlow.js -->
<script src="https://unpkg.com/@tensorflow/tfjs"></script>
<script src="https://unpkg.com/@tensorflow-models/mobilenet"></script>
<link rel='stylesheet' href='styles.css'/>
</head>
<body>
<div id="console"></div>
<div class="titleArea">
<h1>Image classifier</h1>
</div>
<div class="imageArea">
<img id="imgUpload"/>
</div>
<div class="buttonarea">
<input type="file" id="imageFile" accept="image/*" onchange="loadImage(event)" hidden="hidden" />
<button tpe="button" id="imageButton">Select Image</button>
<button tpe="button" id="classify">Classify Image</button>
</div>
<div class = "resultArea">
<div id="result"></div>
</div>
<script src="index.js"></script>
</body>
</html>