Bigsicence/bloom - Gsheets. What am I missing?

Hi there,

I’m an absolute beginner but I’m trying to integrate HuggingFace API and Bloom model in Gsheets.

function ANALYSE(input, repo_id=“bigscience/bloom”) {

endpoint = “https://api-inference.huggingface.co/models/” + repo_id;

const payload = JSON.stringify({
“inputs”: input});

const options = {
“headers”: {“Authorization”: “Bearer ”},
“wait_for_model”: true,
“use_gpu”: false,
“method” : “POST”,
“contentType” : “application/json”,
“payload” : payload,

};

const response = UrlFetchApp.fetch(endpoint, options);

const data = JSON.parse(response.getContentText());

return data;
}

I can see it’s working with other models and if I adapt the script, but not working with Bloom.

This might have to do with the model’s size. Can you enable debugging so we can follow the stack?