mirror of
https://github.com/huggingface/candle.git
synced 2025-06-23 04:46:15 +00:00
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:
8
candle-wasm-example/index.js
Normal file
8
candle-wasm-example/index.js
Normal 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();
|
Reference in New Issue
Block a user