-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added use auth token according to new hugging face #37
base: main
Are you sure you want to change the base?
Conversation
Hi there, any updates on when this PR will be merged? TY! |
No. I don't know when it is going to happen. |
I have unrolled the need for auth tokens, you should be fine now. Try the
demo code as-is
On Thu, 1 Dec 2022 at 7:39 PM, Boyinapalli Sandeep Dora < ***@***.***> wrote:
Hi there, any updates on when this PR will be merged? TY!
No. I don't know when it is going to happen.
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABV6KK25KG6V7M3LY4BES6DWLCWRHANCNFSM6AAAAAARATAF34>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
--
Sent from a mobile device. Please excuse typos and terse messages.
|
In my code, I have
and I get the error
|
Not sure if it matters, but I'm using a poetry project for my project:
|
Was able to get it work by
in my file that imports Parrot! |
NameError: name 'HUGGINGFACE_TOKEN' is not defined |
Define a constant with like HUGGINGFACE_TOKEN = 'YOUR_TOKEN' |
Since hugging face has updated their API, you cannot access Parrot models without using an auth token.
You may land into this issue
...is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'....
To solve this I added a new parameter called
use_auth_token
.How to get a token from Huggingface
write
permitted access token.Parrot
class while initiating.So the updated code will be