Ml5 NetworkError

The following code produces the same output as from this link:
https://storage.googleapis.com/tfhub-tfjs-modules/google/imagenet/mobilenet_v2_100_224/classification/2/model.json

let test;
let done=false;  //Ensures text is only printed once per click

function preload() {
  let url = 'https://tfhub.dev/google/imagenet/mobilenet_v2_100_224/classification/2/model.json?tfjs-format=file';
  
  //REFERENCE httpGET: https://p5js.org/reference/#/p5/httpGet
  httpGet(url, 'text', false, function(response) {
    test = response;
  }
  );
}

function setup() {
  createCanvas(640, 480);
}


function draw() {
  if (mouseIsPressed) {

    if (done==false) {
      fill(180);
      text("Hello " + test, width/2, height/2);
      print(test);
      done=true;
    }
  } else {
    done=false;
  }
}

Just inspect the console logs. Then press once in the canvas of your p5js sketch and inspect the logs and you should see there the output that you need to process.

Kf