Skip to content

alexey-ernest/tensorflow-serving-node-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

Node gRPC client for TensorFlow Serving server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published