I am trying to use the food categorization API from clarifai but the example uses a publically hosted image. Is there any way to use the API using an image from a local folder? I am using nodejs.
const Clarifai = require('clarifai');
const app = new Clarifai.App({
apiKey: 'apikey'
// example code from Clarifai Docs
app.models.predict("bd367be194cf45149e75f01d59f77ba7", "https://samples.clarifai.com/food.jpg").then(
function(response) {
// do something with response
},
function(err) {
// there was an error
}
);
Link where I got sample API request: https://www.clarifai.com/models/food-image-recognition-model-bd367be194cf45149e75f01d59f77ba7