huggingface-php
huggingface-php copied to clipboard
Update to use 'Bearer' HTTP header instead of 'Authorization'
HuggingFace API was returning this message:
Authorization header is invalid, use 'Bearer API_TOKEN'
I assume they have changed their auth code since this library was written.
Furthermore, the HttpTransporter
was throwing a string, but ErrorException
requires an array.
This should close issue #1