-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (32 loc) · 1.03 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
<html>
<head>
<!-- Load the latest version of TensorFlow.js -->
<script src="https://unpkg.com/@tensorflow/tfjs"></script>
<script src="https://unpkg.com/@tensorflow-models/mobilenet"></script>
<script src="https://unpkg.com/@tensorflow-models/knn-classifier"></script>
<!--a lil stylin --->
<style>
button {
all: unset;
background-color: black;
color: white;
padding: 10px 20px;
transition-duration: 0.4s;
}
button:hover {
background-color: white;
color: black;
}
</style>
</head>
<body>
<div id="console"></div>
<!-- Add an image that we will use to test -->
<div class="vid"><video autoplay playsinline muted id="webcam" width="224" height="224"></video></div>
<button id="class-a">Add A</button>
<button id="class-b">Add B</button>
<button id="class-c">Add C</button>
<!-- Load index.js after the content of the page -->
<script src="index.js"></script>
</body>
</html>