From aab8c0688d56298425a98e96750a9459b0318a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?apolin=C3=A1rio?= Date: Sat, 2 Mar 2024 05:05:55 +0100 Subject: [PATCH] Add `extra_gated_description ` to the gate docs (#1230) * Add `extra_gated_description ` to the gate docs `extra_gated_description` is available but not documented * oops * datasets too * fix spacing and wording * Fix spacing and wording * Update docs/hub/datasets-gated.md Co-authored-by: Pedro Cuenca * Update docs/hub/models-gated.md Co-authored-by: Pedro Cuenca --------- Co-authored-by: Pedro Cuenca --- docs/hub/datasets-gated.md | 5 +++-- docs/hub/models-gated.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/hub/datasets-gated.md b/docs/hub/datasets-gated.md index e5a48e7af..a4d250e0a 100644 --- a/docs/hub/datasets-gated.md +++ b/docs/hub/datasets-gated.md @@ -115,11 +115,12 @@ extra_gated_fields: ``` -In some cases, you might also want to modify the text in the gate heading and the text in the button. For those use cases, you can modify `extra_gated_heading` and `extra_gated_button_content` like this: +In some cases, you might also want to modify the default text in the gate heading, description, and button. For those use cases, you can modify `extra_gated_heading`, `extra_gated_description` and `extra_gated_button_content` like this: ```yaml --- extra_gated_heading: "Acknowledge license to accept the repository" +extra_gated_description: "Our team may take 2-3 days to process your request" extra_gated_button_content: "Acknowledge license" --- ``` @@ -163,4 +164,4 @@ Alternatively, you can programmatically login using `login()` in a notebook or a You can also provide the `token` parameter to most loading methods in the libraries (`from_pretrained`, `hf_hub_download`, `load_dataset`, etc.), directly from your scripts. -For more details about how to login, check out the [login guide](https://huggingface.co/docs/huggingface_hub/quick-start#login). \ No newline at end of file +For more details about how to login, check out the [login guide](https://huggingface.co/docs/huggingface_hub/quick-start#login). diff --git a/docs/hub/models-gated.md b/docs/hub/models-gated.md index 1dfd07058..9664b439c 100644 --- a/docs/hub/models-gated.md +++ b/docs/hub/models-gated.md @@ -116,11 +116,12 @@ extra_gated_fields: ``` -In some cases, you might also want to modify the text in the gate heading and the text in the button. For those use cases, you can modify `extra_gated_heading` and `extra_gated_button_content` like this: +In some cases, you might also want to modify the default text in the gate heading, description, and button. For those use cases, you can modify `extra_gated_heading`, `extra_gated_description` and `extra_gated_button_content` like this: ```yaml --- extra_gated_heading: "Acknowledge license to accept the repository" +extra_gated_description: "Our team may take 2-3 days to process your request" extra_gated_button_content: "Acknowledge license" --- ``` @@ -177,4 +178,4 @@ Alternatively, you can programmatically login using `login()` in a notebook or a You can also provide the `token` parameter to most loading methods in the libraries (`from_pretrained`, `hf_hub_download`, `load_dataset`, etc.), directly from your scripts. -For more details about how to login, check out the [login guide](https://huggingface.co/docs/huggingface_hub/quick-start#login). \ No newline at end of file +For more details about how to login, check out the [login guide](https://huggingface.co/docs/huggingface_hub/quick-start#login).