From 074f384600205c781ab98b63dd64a00f4ac569c0 Mon Sep 17 00:00:00 2001 From: Ron Au <5785323+ronvoluted@users.noreply.github.com> Date: Tue, 22 Feb 2022 15:36:41 +1100 Subject: [PATCH] docs(links): Update `settings/token` to `settings/tokens` --- docs/hub/adding-a-model.md | 2 +- docs/hub/security.md | 4 ++-- docs/sagemaker/reference.md | 2 +- src/huggingface_hub/commands/user.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/hub/adding-a-model.md b/docs/hub/adding-a-model.md index 40260b211d..6b65682969 100644 --- a/docs/hub/adding-a-model.md +++ b/docs/hub/adding-a-model.md @@ -163,7 +163,7 @@ Before we begin, you should make sure the `huggingface_hub` library is installed >>> pip install huggingface_hub -Afterwards, you should login with your credentials. To find your credentials you can go to your [settings](https://huggingface.co/settings/token) from the Hugging Face website and copy the current token there. +Afterwards, you should login with your credentials. To find your credentials you can go to your [settings](https://huggingface.co/settings/tokens) from the Hugging Face website and copy the current token there. To login to your profile, there are two options: - Logging in from a Jupyter Notebook that has ipywidgets enabled diff --git a/docs/hub/security.md b/docs/hub/security.md index 2c8040ad6b..2dca67b2d5 100644 --- a/docs/hub/security.md +++ b/docs/hub/security.md @@ -8,7 +8,7 @@ title: Security and trust on the Hugging Face Hub ### What are User Access Tokens? -User Access Tokens are the preferred way to authenticate an application or notebook to Hugging Face services. You can manage your access tokens in your [settings](https://huggingface.co/settings/token). +User Access Tokens are the preferred way to authenticate an application or notebook to Hugging Face services. You can manage your access tokens in your [settings](https://huggingface.co/settings/tokens). ![/docs/assets/hub/access-tokens.png](/docs/assets/hub/access-tokens.png) @@ -20,7 +20,7 @@ Access tokens allow applications and notebooks to perform specific actions speci ### How to manage User Access Tokens? -To create an access token, go to your settings, then click on the ["Access Tokens" tab](https://huggingface.co/settings/token). Click on the "New token" button to create a new User Access Token. +To create an access token, go to your settings, then click on the ["Access Tokens" tab](https://huggingface.co/settings/tokens). Click on the "New token" button to create a new User Access Token. ![/docs/assets/hub/new-token.png](/docs/assets/hub/new-token.png) diff --git a/docs/sagemaker/reference.md b/docs/sagemaker/reference.md index a134c5b526..3f5e0d31c9 100644 --- a/docs/sagemaker/reference.md +++ b/docs/sagemaker/reference.md @@ -196,7 +196,7 @@ HF_MODEL_REVISION="03b4d196c19d0a73c7e0322684e97db1ec397613" **`HF_API_TOKEN`** -`HF_API_TOKEN` defines your Hugging Face authorization token. The `HF_API_TOKEN` is used as a HTTP bearer authorization for remote files like private models. You can find your token under [Settings](https://huggingface.co/settings/token) of your Hugging Face account. +`HF_API_TOKEN` defines your Hugging Face authorization token. The `HF_API_TOKEN` is used as a HTTP bearer authorization for remote files like private models. You can find your token under [Settings](https://huggingface.co/settings/tokens) of your Hugging Face account. ```bash HF_API_TOKEN="api_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" diff --git a/src/huggingface_hub/commands/user.py b/src/huggingface_hub/commands/user.py index bb7f604390..0a7f28b96d 100644 --- a/src/huggingface_hub/commands/user.py +++ b/src/huggingface_hub/commands/user.py @@ -164,7 +164,7 @@ def run(self): _| _| _| _| _| _| _| _| _| _| _|_| _| _| _| _| _| _| _| _| _| _|_| _|_|_| _|_|_| _|_|_| _| _| _|_|_| _| _| _| _|_|_| _|_|_|_| - To login, `huggingface_hub` now requires a token generated from https://huggingface.co/settings/token. + To login, `huggingface_hub` now requires a token generated from https://huggingface.co/settings/tokens. (Deprecated, will be removed in v0.3.0) To login with username and password instead, interrupt with Ctrl+C. """ ) @@ -313,7 +313,7 @@ def run(self): NOTEBOOK_LOGIN_TOKEN_HTML_START = """
Hugging Face
-Copy a token from your Hugging Face tokens page and paste it below. +Copy a token from your Hugging Face tokens page and paste it below.
Immediately click login after copying your token or it might be stored in plain text in this notebook file.
"""