Created
December 15, 2018 06:14
-
-
Save Visrozar/f79df1121e004e5d4158669e78c9c98d to your computer and use it in GitHub Desktop.
Clarifai API - Search based on Custom Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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