Re-organize the wasm examples (#231)

* Move the whisper example.

* More renaming.

* Add llama2 as a new wasm example.

* Live generation.

* More of the llama wasm example.

* Formatting.
This commit is contained in:
Laurent Mazare
2023-07-24 12:36:02 +01:00
committed by GitHub
parent 550a13a547
commit 5a26cba733
22 changed files with 988 additions and 18 deletions

View File

@ -0,0 +1,6 @@
import init, { run_app } from './pkg/candle_wasm_example_whisper.js';
async function main() {
await init('/pkg/candle_wasm_example_whisper_bg.wasm');
run_app();
}
main()