Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: alabulei1 <vivian.xiage@gmail.com>
  • Loading branch information
alabulei1 authored Dec 16, 2021
1 parent 9653f0a commit 7a02bad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions faas/mtcnn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Run MTCNN tensorflow models as functions.

## Prerequisites

If you have not done so already, follow these simple instructions to install [Rust](https://www.rust-lang.org/tools/install) and [ssvmup](https://www.secondstate.io/articles/ssvmup/).
If you have not done so already, follow these simple instructions to install [Rust](https://www.rust-lang.org/tools/install) and [rustwasmc](https://www.secondstate.io/articles/ssvmup/).

## Build the WASM bytecode

```
$ ssvmup build --enable-aot --enable-ext
$ rustwasmc build --enable-ext
```

## Create FaaS function
Expand All @@ -28,7 +28,7 @@ $ curl --location --request POST 'https://rpc.ssvm.secondstate.io:8081/api/execu
Returns

```
{"wasm_id":195,"wasm_sha256":"0x469c28daae7aba392076b4bc5ee3b43ec6d667083d8ae63207bf74b1da03fc26","SSVM_Usage_Key":"00000000-0000-0000-0000-000000000000","SSVM_Admin_Key":"7dxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx0c41"}
{"wasm_id":482,"wasm_sha256":"0x469c28daae7aba392076b4bc5ee3b43ec6d667083d8ae63207bf74b1da03fc26","SSVM_Usage_Key":"00000000-0000-0000-0000-000000000000","SSVM_Admin_Key":"7dxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx0c41"}
```

Note: You can update this binary with the `SSVM_Admin_Key`.
Expand All @@ -45,7 +45,7 @@ $ curl --location --request PUT 'https://rpc.ssvm.secondstate.io:8081/api/update
Make a function call via the web.

```
$ curl --location --request POST 'https://rpc.ssvm.secondstate.io:8081/api/run/195/infer/bytes' \
$ curl --location --request POST 'https://rpc.ssvm.secondstate.io:8081/api/run/482/infer/bytes' \
--header 'Content-Type: application/octet-stream' \
--data-binary '@test/solvay.jpg' \
--output tmp.jpg
Expand Down

0 comments on commit 7a02bad

Please sign in to comment.