Skip to content

Instantly share code, notes, and snippets.

@Visrozar
Created December 15, 2018 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Visrozar/b695911440b00b7db6adc0520b5b8189 to your computer and use it in GitHub Desktop.
Save Visrozar/b695911440b00b7db6adc0520b5b8189 to your computer and use it in GitHub Desktop.
Clarifai API - Search by Concept
app.inputs.search({ concept: { name: 'pug' } }).then(
function (response) {
response.hits.forEach(hit => {
console.log(hit.score);
console.log(hit.input.data.image);
});
},
function (err) {
console.log(err);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment