Created
December 15, 2018 05:45
-
-
Save Visrozar/b695911440b00b7db6adc0520b5b8189 to your computer and use it in GitHub Desktop.
Clarifai API - Search by Concept
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: '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