Skip to content

Instantly share code, notes, and snippets.

@Visrozar
Created December 15, 2018 05:51
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/cdabadca4ded523a116d0168bcbe5bcd to your computer and use it in GitHub Desktop.
Save Visrozar/cdabadca4ded523a116d0168bcbe5bcd to your computer and use it in GitHub Desktop.
Clarifai API - Input with Concepts
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