Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2020 00:33
What would you like to do?
Node JS example for
const request = require('request')
const fs = require('fs');
var req ="", function (err, resp, body) {
if (err) {
} else {
var json = JSON.parse(body)
console.log("This image has been classified as",
else console.log("Error",json.reason)
var form = req.form();
form.append('image', fs.createReadStream('1.jpg'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment