diff --git a/src/huggingface_hub/commands/user.py b/src/huggingface_hub/commands/user.py index 41cecb77df..deb1cb7d2f 100644 --- a/src/huggingface_hub/commands/user.py +++ b/src/huggingface_hub/commands/user.py @@ -19,6 +19,7 @@ from huggingface_hub.commands import BaseHuggingfaceCLICommand from huggingface_hub.constants import ( + ENDPOINT, REPO_TYPES, REPO_TYPES_URL_PREFIXES, SPACES_SDK_TYPES, @@ -194,6 +195,9 @@ def run(self): orgs = [org["name"] for org in info["orgs"]] if orgs: print(ANSI.bold("orgs: "), ",".join(orgs)) + + if ENDPOINT != "https://huggingface.co": + print(f"Authenticated through private endpoint: {ENDPOINT}") except HTTPError as e: print(e) print(ANSI.red(e.response.text))