-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
148 lines (131 loc) · 5.64 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Javascript Speech Synthesis</title>
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<!-- code mirror -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/darcula.min.css"
integrity="sha512-kqCOYFDdyQF4JM8RddA6rMBi9oaLdR0aEACdB95Xl1EgaBhaXMIe8T4uxmPitfq4qRmHqo+nBU2d1l+M4zUx1g=="
crossorigin="anonymous" referrerpolicy="no-referrer"/>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.52.2/codemirror.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/javascript/javascript.js'></script>
<style>
.toast-container {
position: absolute;
z-index: 1000;
top: 10px;
right: 20px;
}
</style>
</head>
<body>
<div class="toast-container">
<div id="custom-toast" class="toast bg-white" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="me-auto">Command</strong>
</div>
<pre id="custom-toast-body" class="toast-body"></pre>
</div>
</div>
<div class="container">
<h4 class="text-center mt-5">
Hybrid Programming: JavaScript Speech Synthesis
</h4>
<div class="form-group">
<label for="textbox"></label>
<textarea id="textbox" rows="6" class="form-control"></textarea>
</div>
<pre id="result"></pre>
<div class="form-group">
<button id="run" class="btn btn-dark btn-block mt-4">Compile</button>
<button id="start" class="btn btn-danger btn-block" disabled>Start</button>
<p class="h5 mb-5 animate__animated animate__fadeIn">Instructions: <span id="instructions"></span>
</p>
<div class="input-group mt-2 mb-1">
<div class="input-group-prepend">
<button id="upload-dataset" class="input-group-text">Upload Dataset</button>
</div>
<div class="custom-file">
<input type="file" class="custom-file-input" id="dataset-file-input"
aria-describedby="input-group-text">
<label id="dataset-file-input-label" class="custom-file-label" for="dataset-file-input">Choose
file</label>
</div>
</div>
<button id="eval-model-on-dataset" class="btn btn-block btn-info">Evaluate Saved Model on Uploaded Dataset
</button>
<button id="download-dataset" class="btn btn-block btn-light">↓ Download dataset as file</button>
<div class="transfer-learn-section mt-4">
<div class="h5 mb-4">Transfer Learning Section:</div>
<div class="my-4">
<label for="saved-transfer-models" class="font-weight-bold">Saved Transfer Models</label>
<select id="saved-transfer-models" class="custom-select">
<option value="1"></option>
</select>
<button id="load-transfer-model" class="btn btn-block btn-info">Load Transfer Model</button>
</div>
<div class="my-4">
<label for="transfer-model-name" class="font-weight-bold">Transfer Model Name</label>
<input id="transfer-model-name"
class="form-control" size="20"
placeholder="active model name">
</div>
<div class="my-4">
<label for="learn-words" class="font-weight-bold">Recognized Keywords</label>
<input id="learn-words" size="20" value="" class="form-control" placeholder="recognized keywords">
</div>
</div>
</div>
<div>
<div class="h5 mt-5">Special Keyword Function Dictionary:</div>
<span>*Enabled when keywords exist in model</span>
<table class="table" id="function-dictionary">
<thead class="thead-dark">
<tr>
<th scope="col">Keyword</th>
<th scope="col">Description</th>
<th scope="col">Code</th>
<th scope="col">Category</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div>
<div class="h5 mt-5">Keyword Dictionary:</div>
<div class="input-group mt-2 mb-1">
<div class="input-group-prepend">
<button id="upload-dictionary" class="input-group-text">Upload Dictionary</button>
</div>
<div class="custom-file">
<input type="file" class="custom-file-input" id="dictionary-file-input"
aria-describedby="input-group-text">
<label id="dictionary-file-input-label" class="custom-file-label" for="dictionary-file-input">Choose
file</label>
</div>
</div>
<table class="table" id="dictionary">
<thead class="thead-dark">
<tr>
<th scope="col">Keyword</th>
<th scope="col">Description</th>
<th scope="col">Code</th>
<th scope="col">Category</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script type="module" src="index.js"></script>
</body>
</html>