Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli classify_yml README.md #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions cli/classify_yml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# WASI wasmedge-tensorflow app

In this example, we demonstrate how to run a wasmedge_tensorflow_interface WASM application from the command line.

## Prerequisites

[Install Rust](https://www.rust-lang.org/tools/install)

Install WasmEdge by downloading and extracting the `wasmedge-tensorflow` binary executable file from [project release package](https://github.com/second-state/WasmEdge-tensorflow/releases).

## Build the WASM bytecode

```
$ cargo build --target wasm32-wasi --release
```

## Run the application from command line

We will use the `wasmedge-tensorflow` command to run the program.

```
wasmedge-tensorflow --dir .:. target/wasm32-wasi/release/classify_yml.wasm config/bird.yml img/bird.png

Haliaeetus leucocephalus,0.6432397
Caracara cheriway,0.08298906
Parabuteo unicinctus,0.040016767
Phalacrocorax carbo,0.01358868
```