diff --git a/README.md b/README.md index 775f5aa..e724cb1 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ > **AI system for malaria detection from blood smear images** > Implemented in Rust (Burn) with an Axum inference API and a Yew web UI. + ## Overview This model predicts: @@ -31,7 +32,7 @@ Stage labels are weak (image-level presence inferred from filename tokens) and a ## Requirements - Rust toolchain -- Optional (UI): `trunk` + target `wasm32-unknown-unknown` +- UI: `trunk` + target `wasm32-unknown-unknown` ## Data Preparation (Crops + Manifest) diff --git a/inference-ui/Cargo.lock b/inference-ui/Cargo.lock index d9c9410..00d2d68 100644 --- a/inference-ui/Cargo.lock +++ b/inference-ui/Cargo.lock @@ -609,6 +609,7 @@ dependencies = [ "js-sys", "log", "serde", + "serde-wasm-bindgen 0.6.5", "serde_json", "wasm-bindgen", "wasm-bindgen-futures", diff --git a/inference-ui/Cargo.toml b/inference-ui/Cargo.toml index 2950733..4102036 100644 --- a/inference-ui/Cargo.toml +++ b/inference-ui/Cargo.toml @@ -21,6 +21,7 @@ web-sys = { version = "0.3", features = [ js-sys = "0.3" serde = { version = "1", features = ["derive"] } serde_json = "1" +serde-wasm-bindgen = "0.6" log = "0.4" console_error_panic_hook = "0.1" console_log = { version = "1", features = ["color"] } diff --git a/inference-ui/index.html b/inference-ui/index.html index 599a830..c502dd7 100644 --- a/inference-ui/index.html +++ b/inference-ui/index.html @@ -1,57 +1,225 @@ -
- - -