Skip to content

Instantly share code, notes, and snippets.

@Visrozar

Visrozar/index.js

Created Dec 15, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.