
bu the way there is an issue here exactly in this line:
let decoded = await tokenizer.decode (outputs[0][0], { skip special tokens: true z);
you enter the object index 0 in the outputs array and you reenter the object index 0 in the previous object that throws an issue until you change it like that:
let decoded = await tokenizer.decode (outputs[0], { skip special tokens: true z);