mix hf.login (huggingface_client v0.1.0)

Copy Markdown View Source

Saves a HuggingFace API token to ~/.cache/huggingface/token.

$ mix hf.login --token hf_xxx

Options

  • --token / -t — your HuggingFace API token (prompts if omitted)

The token will be used by all HuggingfaceClient calls that don't specify an explicit access_token: option.