-
Notifications
You must be signed in to change notification settings - Fork 0
/
ai_demo.html
62 lines (53 loc) · 2.06 KB
/
ai_demo.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
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>AI Demo</title>
<link rel="icon" type="image/x-icon" href="/images/favicons/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" type="text/css" href="css/ai_demo.css">
<link rel="stylesheet" href="css/about_styles.css" />
<link rel="stylesheet" href="css/header_styles.css">
</head>
<nav>
<div class="logo">
<a href="index.html">
<img src="images/logos_internal/logo-nobg.png" class="logo" />
</a>
</div>
<div class="menu-toggle" id="mobile-menu">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
<ul class="nav-list">
<li class="nav-item"><a href="index.html">Home</a></li>
<li class="nav-item"><a href="about.html">About</a></li>
<li class="nav-item"><a href="portfolio.html">Portfolio</a></li>
</ul>
</nav>
<body>
<h2 style="text-align: center; margin-top: 10px;">Digit Detector</h2>
<div class="container">
<div class="stacked">
<p>Directions: Draw any number in the black box and the predicted number will show up!</p>
<div id="canvas_box" class="canvas-box"></div>
<button id="clear-button" class="btn btn-dark">Clear</button>
</div>
<div class="stacked">
<div id="result_box">
<canvas id="chart_box" />
</div>
<div class="prediction-text" />
</div>
<br/>
</div>
<script src="js/menuToggle.js"></script>
<script src="js/ai_demo.js"></script>
</body>
</html>