Spaces:
Running
Running
Upload index.html
Browse files- index.html +4 -6
index.html
CHANGED
@@ -9,16 +9,14 @@
|
|
9 |
<script>
|
10 |
const go = new Go();
|
11 |
|
12 |
-
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then(result => {
|
13 |
-
go.run(result.instance);
|
14 |
-
});
|
15 |
-
|
16 |
document.addEventListener("DOMContentLoaded", function () {
|
17 |
const tokenizeButton = document.querySelector("button[onclick='tokenizeText()']");
|
18 |
|
19 |
-
|
|
|
|
|
20 |
tokenizeButton.disabled = false;
|
21 |
-
};
|
22 |
});
|
23 |
|
24 |
async function tokenizeText() {
|
|
|
9 |
<script>
|
10 |
const go = new Go();
|
11 |
|
|
|
|
|
|
|
|
|
12 |
document.addEventListener("DOMContentLoaded", function () {
|
13 |
const tokenizeButton = document.querySelector("button[onclick='tokenizeText()']");
|
14 |
|
15 |
+
WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then(result => {
|
16 |
+
go.run(result.instance);
|
17 |
+
|
18 |
tokenizeButton.disabled = false;
|
19 |
+
});
|
20 |
});
|
21 |
|
22 |
async function tokenizeText() {
|