-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
29 lines (28 loc) · 1.6 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
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<div class="container" style="padding-top: 20px">
<div class="card">
<div class="card-header">
<strong>TensorFlow.js Demo - Linear Regression</strong>
</div>
<div class ="card-body">
<label>Input Value:</label> <input type="text" id="inputValue" class="form-control"><br>
<button type="button" class="btn btn-primary" id="predictButton" disabled>Model is being loaded, please wait...</button>
<button type="button" class="btn btn-primary" id="trainButton" disabled>Model is being loaded, please wait...</button>
<button type="button" class="btn btn-primary" id="fetchGlobalButton" disabled>Model is being loaded, please wait...</button>
<br><br>
<h4>Result:</h4>
<h5><span class="badge badge-secondary" id="output"></span></h5>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<script src="./static/database.js"></script>
<script src="./static/ml_helper.js"></script>
<script src="./static/index.js" defer></script>
</body>
</html>