Error 400 with hugging face API

Hi there,
I am trying to build an AI-based application in bubble. I am using hugging face API to summarize the text. I have attached the link to the API and bubble settings of the API I am using.


When I try to initialize the API it produces an error as shown in the image.

Any help to resolve this issue would be great. Thanks

In the Headers section where you have Bearer {API_TOKEN}. You need to put your API key in place of the {API_TOKEN} part. You would get that from the huggingface website, maybe from your account page you would create a new one. Also you should have it set to private.