Skip to content

Commit

Permalink
Fix a command to get lena image in CONTRIBUTION guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Manovich committed Jul 29, 2020
1 parent ced2746 commit 4210645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ nuctl get function

</details>

- Test your deployed DL model as a serverless function
- Test your deployed DL model as a serverless function. The command below
should work on Linux and Mac OS.

```bash
image=$(curl https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png --output - | base64)
image=$(curl https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png --output - | base64 | tr -d '\n')
cat << EOF > /tmp/input.json
{"image": "$image"}
EOF
Expand Down

0 comments on commit 4210645

Please sign in to comment.