Created
December 15, 2018 05:51
-
-
Save Visrozar/cdabadca4ded523a116d0168bcbe5bcd to your computer and use it in GitHub Desktop.
Clarifai API - Input with Concepts
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.create([ | |
{ | |
url: "https://www.pets4homes.co.uk/images/breeds/9/4a7da5efe7121c4e03c417c344306bd0.jpg", | |
concepts: [ | |
{ | |
id: "golden retriever", | |
value: true | |
} | |
] | |
}, | |
{ | |
url: "https://static1.squarespace.com/static/594a99dbf7e0abde931a7d6e/t/5967fe51ccf210d4c7453994/1501187618146/Lucky5.jpg", | |
concepts: [ | |
{ | |
id: "golden retriever", | |
value: true | |
} | |
] | |
}, | |
{ | |
url: "https://d17fnq9dkz9hgj.cloudfront.net/breed-uploads/2018/08/golden-retriever-card-small.jpg", | |
concepts: [ | |
{ | |
id: "golden retriever", | |
value: true | |
} | |
] | |
} | |
]).then( | |
function (response) { | |
console.log(response); | |
}, | |
function (err) { | |
console.log(err); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment