forked from webmachinelearning/webnn-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
108 lines (108 loc) · 5.28 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>WebNN NSNet2 Example</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="../common/css/style.css">
<link rel="icon" type="image/x-icon" href="../common/img/favicon/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="../common/img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../common/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../common/img/favicon/favicon-16x16.png">
<link rel="manifest" href="../common/img/favicon/site.webmanifest">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark">
<a href="../">
<div class="logosvg" id="logosvg"></div>
</a>
<span class="navbar-brand">Noise Suppression (NSNet2)</span>
<ul class="navbar-nav"></ul>
</nav>
<div class="container" id="container">
<div class="row mb-3 mt-3 align-items-center">
<div class="col-md">
</div>
<div class="col-md-8">
<div class="card">
<div class="card-body">
<div class="btn-group-toggle" data-toggle="buttons" id="backendBtns">
<span class='mr-3'>Backend</span>
<label class="btn btn-outline-info" name="webnn">
<input type="radio" name="backend" id="webnn_cpu" autocomplete="off">WebNN (CPU)
</label>
<label class="btn btn-outline-info" name="webnn">
<input type="radio" name="backend" id="webnn_gpu" autocomplete="off">WebNN (GPU)
</label>
</div>
</div>
</div>
</div>
<div class="col-md">
</div>
</div>
<div class="row">
<div class="col-md">
</div>
<div class="col-md-8">
<div id="info" style="min-height: 7em;"></div>
</div>
<div class="col-md">
</div>
</div>
<div class="row align-items-start" style="padding-top:2%;">
<div class="col-md">
</div>
<div class="col-md-8">
<div class="input-group mb-3" style="width: 80%;">
<div class="input-group-prepend">
<button id="choose-audio" type="button" class="btn btn-info btn-lg dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" disabled>
Choose a sample audio
</button>
<div class="dropdown-menu">
<button class="dropdown-item" id="babbel">Babbel noise</button>
<button class="dropdown-item" id="car">Car noise</button>
<button class="dropdown-item" id="street">Street noise</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item" id="browse">Browse...</button>
</div>
</div>
<span id="audio-name" class="form-control-plaintext" aria-label="Text input with dropdown button" style="padding-left: 5px;">
</div>
<form hidden>
<input type="file" class="form-control-file" id="file-input" accept=".wav, .opus, .mp3, .ogg, .webm">
</form>
<div style="padding-top: 5px;">
<div for="original-audio">Original audio:</div>
<audio controls id="original-audio" style="width: 80%;"></audio>
</div>
</div>
<div class="col-md">
</div>
</div>
<div class="row align-items-start" style="padding-top:2%;">
<div class="col-md">
</div>
<div class="col-md-8">
<div id="denoise-info" style="min-height: 8em;"></div>
<div for="original-audio">Denoised audio:</div>
<audio controls id="denoised-audio" style="width: 80%;"></audio>
</div>
<div class="col-md">
</div>
</div>
</div>
<footer class="text-muted text-center text-small mt-5">
<div id="badge"></div>
<div id="footer"></div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js" integrity="sha256-thVOvsS0U8X0/2twH3+6dCK3ZPTvgWgFSivgfpj5vQQ=" crossorigin="anonymous"></script>
<script type="module" src="./main.js"></script>
<script type="module" src="../common/component/component.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6TK7JD3KKY"></script>
<script src="../common/libs/gtag.js"></script>
</body>
</html>