Issue with HUB_TOKEN

#12
by na2ai - opened

I am having issue running the app.py and getting the following error message:
Traceback (most recent call last):
File "G:\santacoder-demo\app.py", line 17, in
token = os.environ["HUB_TOKEN"]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\os.py", line 680, in getitem
raise KeyError(key) from None
KeyError: 'HUB_TOKEN'

Can I have some help with the error and how to fix it?
Thanks.

BigCode org

you need to define an env variable HUB_TOKEN with your HF token, or you can just delete that line as well as use_auth_token=token from the model call, since it's not a private model.

Thank you.

loubnabnl changed discussion status to closed

Sign up or log in to comment