mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 02:38:10 +00:00

* Wasm proof of concept. * Run whisper inference in the browser. * Some fixes. * Move the wasm example. * Change the tokenizer config.
9 lines
201 B
JavaScript
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();
|