Wasm proof of concept. (#167)

* Wasm proof of concept.

* Run whisper inference in the browser.

* Some fixes.

* Move the wasm example.

* Change the tokenizer config.
This commit is contained in:
Laurent Mazare
2023-07-14 14:51:46 +01:00
committed by GitHub
parent d88b6cdca9
commit 88f666781f
9 changed files with 986 additions and 1 deletions

View File

@ -0,0 +1,8 @@
import init from "./pkg/candle_wasm.js";
const runWasm = async () => {
const candleWasm = await init("./pkg/candle_wasm_bg.wasm");
candleWasm.test_fn();
await candleWasm.run_fn();
};
runWasm();