function handleResults(error, results) {
    if(error){
      console.error(error);
      return;
    }
    console.log(results); // {label: 'red', confidence: 0.8};
}
// Step 7: define a function to handle the results of your classification
Step 7: define a function to handle the results of your classification
Step 7 : define a function to handle the results of your classification
function handleResults(error, results) {
    if(error){
      console.error(error);
      return;
    }
    console.log(results); 
}
function handleResults ( error , results ) { if ( error ) { console . error ( error ) ; return ; } console . log ( results ) ; }
Step 7: define a function to handle the results of your classification
Step 7 : define a function to handle the results of your classification
// {label: 'red', confidence: 0.8};