langtest.utils.hf_utils.login_with_token#

login_with_token()#

Log in to the Hugging Face Hub using the provided API token.

This function checks if the ‘HUGGINGFACEHUB_API_TOKEN’ environment variable is set. If the token is found and the ‘huggingface_hub’ module is installed, it imports the ‘login’ function and logs in using the provided API token.