-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (49 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Teachable Machine Image Model</title>
<!-- Bootstrap via CDN -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background-color: #3bcc81;
font-family: Arial, sans-serif;
padding-top: 20px;
}
#webcam-container {
margin-bottom: 20px;
}
.label {
background-color: #28a745;
color: #fff;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
}
/* Add custom class for the primary button */
.custom-primary-button {
background-color: #28a745;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="container d-flex justify-content-center align-items-center" style="height: 100vh;">
<div class="text-center">
<h1 class="text-white">Teachable Machine Image Model</h1>
<button type='button' onclick='init()' class="btn btn-lg btn-primary custom-primary-button mb-3">Start</button>
<div id='webcam-container'></div>
<div id='label-container' class="text-center"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-image.min.js"></script>
<script src="script.js"></script>
</body>
</html>