mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 10:26:33 +00:00

* 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.
15 lines
271 B
Rust
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(())
|
|
}
|