Google Sheets Apps Script Error

Getting the following error when I am trying to use facebook/bart-large-mnli using this repo Add Zero-shot classification to Google Sheets using HuggingFace's API · GitHub

Exception: Request failed for https://api-inference.huggingface.co returned code 400. Truncated server response: {“error”:["field required: candidate_labels in parameters"]} (use muteHttpExceptions option to examine full response) (line 20, file “Code”)

It might be that you’re not setting the spreadsheet correctly. This video might help you NLP on Google Sheets with Hugging Face Inference API - No Code ML Tutorial - YouTube

Feel free to share the spreadsheet as well! :hugs:

1 Like