The huggingfacehub library allows users to programmatically manage authentication to the Hub. This includes logging in, logging out, switching between tokens, and listing…
Authentication
The huggingface_hub library allows users to programmatically manage authentication to the Hub. This includes logging in, logging out, switching between tokens, and listing available tokens.
For more details about authentication, check out this section.
login
[[autodoc]] login
interpreter_login
[[autodoc]] interpreter_login
notebook_login
[[autodoc]] notebook_login
logout
[[autodoc]] logout
auth_switch
[[autodoc]] auth_switch
auth_list
[[autodoc]] auth_list
Source and license
Source: Hub Python Library documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.