-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
37 lines (35 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<title>Digit Recognizer using TensorFlow.js Demo</title>
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body>
<div class="container">
<div class="digit-demo-container">
<h3 id="digit-recognizer-live-demo">Digit Recognizer using TensorFlow.js Demo</h3>
<div class="flex-two" style="margin-top: 20px;">
<button id="clear_canvas" class="material-button-pink" onclick="clearCanvas(this.id)">Clear</button>
<select id="select_model">
<option>MLP</option>
<option>CNN</option>
</select>
<button id="predict_canvas" class="material-button-pink" onclick="predict(this.id)">Predict</button>
</div>
<div class="flex-two">
<div id="canvas_box_wrapper" class="canvas-box-wrapper">
<div id="canvas_box" class="canvas-box"></div>
</div>
<div id="result_box">
<canvas id="chart_box" width="100" height="100"></canvas>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>