Exposing Token to Docker Container

#5
by johnshaff - opened

I receive this error in the container log:

OSError: Token is required (token=True), but no token found. You need to provide a token or be logged in to Hugging Face with huggingface-cli login or huggingface_hub.login. See https://huggingface.co/settings/tokens.

My huggingface token is in my local env, but I have no idea how to expose it to the container as I don't control the image source code, any ideas?

Sign up or log in to comment