Files
candle/candle-wasm-example/src/lib.rs
Laurent Mazare d1f6fad84a Whisper example in wasm. (#169)
* Whisper example in wasm.

* Load the model.

* Get the whisper demo to work (though slowly).

* Polish the UI a bit.

* Minor tweak.

* More UI.

* Add the progress bar.
2023-07-14 19:33:36 +01:00

15 lines
271 B
Rust

#![allow(dead_code)]
use wasm_bindgen::prelude::*;
mod app;
mod audio;
mod model;
#[wasm_bindgen]
pub fn run_app() -> Result<(), JsValue> {
wasm_logger::init(wasm_logger::Config::new(log::Level::Trace));
yew::Renderer::<app::App>::new().render();
Ok(())
}