Package Exports
- tensorflow-serving-node-client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tensorflow-serving-node-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tensorflow-serving-node-client
Node gRPC client for TensorFlow Serving server
const fs = require('fs');
const client = require('tensorflow-serving-node-client')('localhost:9000');
const IMAGE_PATH = './cat.jpg';
const buffer = fs.readFileSync(IMAGE_PATH);
client.predict(buffer, (err, res) => {
if (err) {
return console.error(err);
}
console.log(res);
});