forked from microsoft/onnxruntime-inference-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (77 loc) · 2.86 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="./dist/bundle.min.js"></script>
<style>
/* Add rounded corners to blocks */
.rounded-block {
border-radius: 10px;
border: 1px solid #ccc;
padding: 20px;
position: relative;
}
/* Move text inside the border */
.rounded-block h4 {
position: absolute;
top: 00%;
left: 50%;
transform: translate(-50%, -50%);
padding: 5px 10px;
background-color: white;
font-size: 18px;
}
</style>
</head>
<body>
<title>onnxruntime-web whisper demo</title>
<div class="container">
<h2>onnxruntime-web whisper demo</h2>
<br />
<div class="d-grid gap-3">
<div class="row">
<div class="col-md-4 rounded-block">
<h4>Audio Input</h4>
<form>
<div class="form-group ">
<input type="file" id="file-upload" class="form-control-file">
</div>
<br />
<p>OR</p>
<button id="record" class="btn btn-primary" type="button">Record</button>
</form>
</div>
<div class="col-md-4 rounded-block">
<h4>Transcribe</h4>
<div id="record_play">
<audio id="record_play_audio" controls></audio>
</div>
<br />
<button id="transcribe" class="btn btn-primary" type="button">Transcribe</button>
</div>
<div class="col-md-4 rounded-block">
<h4>Stats</h4>
<div class="bg-light">
<div id="latency"></div>
</div>
</div>
</div>
<div class="row gap-3">
<div class="progress">
<div id="progress" class="progress-bar progress-bar-striped" role="progressbar" style="width: 0%"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="row gap-3">
<textarea id="outputText" class="form-control" rows="12" readonly></textarea>
</div>
<div class="row gap-3">
<div id="status" style="font: 1em consolas;"></div>
</div>
</div>
</div>
</body>
</html>