Files
candle/candle-wasm-example/index.js
Laurent Mazare 88f666781f 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.
2023-07-14 14:51:46 +01:00

9 lines
201 B
JavaScript

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();