Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(links): Update settings/token to settings/tokens #699

Merged
merged 1 commit into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/hub/adding-a-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/hub/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/sagemaker/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/huggingface_hub/commands/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
)
Expand Down Expand Up @@ -313,7 +313,7 @@ def run(self):
NOTEBOOK_LOGIN_TOKEN_HTML_START = """<center>
<img src=https://huggingface.co/front/assets/huggingface_logo-noborder.svg alt='Hugging Face'>
<br>
Copy a token from <a href="https://huggingface.co/settings/token" target="_blank">your Hugging Face tokens page</a> and paste it below.
Copy a token from <a href="https://huggingface.co/settings/tokens" target="_blank">your Hugging Face tokens page</a> and paste it below.
<br>
Immediately click login after copying your token or it might be stored in plain text in this notebook file.
</center>"""
Expand Down