Commit f98a28ad authored by Htriedman's avatar Htriedman
Browse files
parents 39fdf700 b3067732
......@@ -59,7 +59,7 @@ Open a new terminal, change dir to `image-content-filtration-serve/` and run the
```
curl localhost:8080/v1/models/image-content-filtration-model:predict -d @<input_file>.json
```
The `input_sfw.json` follows the [Tensorflow V1 HTTP API](https://www.tensorflow.org/tfx/serving/api_rest#encoding_binary_values) for encoding image bytes. We encoded a test image `dog.jpeg` to a base64 string and encapsulated it in `input.json`.
The `input_(n)sfw.json` files follow the [Tensorflow V1 HTTP API](https://www.tensorflow.org/tfx/serving/api_rest#encoding_binary_values) for encoding image bytes. We encoded a test image `dog.jpeg` to a base64 string and encapsulated it in `input_sfw.json`. A NSFW image from commons was encoded as a base64 string and encapsulated in `input_nsfw.json`.
If everything goes fine, you should see the following output for `input_sfw.json`:
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment