mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 20:22:49 +00:00
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:
4
candle-wasm-examples/llama2-c/src/bin/app.rs
Normal file
4
candle-wasm-examples/llama2-c/src/bin/app.rs
Normal file
@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
wasm_logger::init(wasm_logger::Config::new(log::Level::Trace));
|
||||
yew::Renderer::<candle_wasm_example_llama2::App>::new().render();
|
||||
}
|
4
candle-wasm-examples/llama2-c/src/bin/worker.rs
Normal file
4
candle-wasm-examples/llama2-c/src/bin/worker.rs
Normal file
@ -0,0 +1,4 @@
|
||||
use yew_agent::PublicWorker;
|
||||
fn main() {
|
||||
candle_wasm_example_llama2::Worker::register();
|
||||
}
|
Reference in New Issue
Block a user