import os from huggingface_hub import login token = os.getenv("HUGGINGFACE_TOKEN") if token is None or token == "": raise RuntimeError("HUGGINGFACE_TOKEN is not set or is empty.") login(token=token, add_to_git_credential=False)