Skip to content

Instantly share code, notes, and snippets.

@Visrozar
Created December 15, 2018 06:14
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/f79df1121e004e5d4158669e78c9c98d to your computer and use it in GitHub Desktop.
Save Visrozar/f79df1121e004e5d4158669e78c9c98d to your computer and use it in GitHub Desktop.
Clarifai API - Search based on Custom Model
app.inputs.search({ concept: { name: 'golden retriever' } }).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