Skip to content

Commit

Permalink
📝 instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Nov 20, 2020
1 parent f663b45 commit d8b4e14
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@

Running MNIST inference in [bevy](https://github.com/bevyengine/bevy) with [tract](https://github.com/sonos/tract). And in wasm!

![demo](https://raw.githubusercontent.com/vleue/bevmnist/main/demo.gif)
![demo](https://raw.githubusercontent.com/vleue/bevmnist/master/demo.gif)


## Build in wasm

```
cp -r assets wasm/
cargo build --release --target wasm32-unknown-unknown --no-default-features
wasm-bindgen --no-typescript --out-name bevmnist --out-dir wasm --target web ${CARGO_TARGET_DIR:-target}/wasm32-unknown-unknown/release/bevmnist.wasm
```
and then serve with your favorite http server the `wasm` folder

0 comments on commit d8b4e14

Please sign in to comment.