From 305e8ce2a724ea2f495188950374aded384e3456 Mon Sep 17 00:00:00 2001 From: Mishig Date: Mon, 27 Nov 2023 10:51:08 +0100 Subject: [PATCH] Update references to hub-docs --- src/huggingface_hub/hf_api.py | 2 +- src/huggingface_hub/keras_mixin.py | 4 ++-- src/huggingface_hub/repocard_data.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/huggingface_hub/hf_api.py b/src/huggingface_hub/hf_api.py index 619cfb475b..407724b9cd 100644 --- a/src/huggingface_hub/hf_api.py +++ b/src/huggingface_hub/hf_api.py @@ -258,7 +258,7 @@ class BlobSecurityInfo(TypedDict, total=False): class TransformersInfo(TypedDict, total=False): auto_model: str custom_class: Optional[str] - # possible `pipeline_tag` values: https://github.com/huggingface/hub-docs/blob/f2003d2fca9d4c971629e858e314e0a5c05abf9d/js/src/lib/interfaces/Types.ts#L79 + # possible `pipeline_tag` values: https://github.com/huggingface/huggingface.js/blob/3ee32554b8620644a6287e786b2a83bf5caf559c/packages/tasks/src/pipelines.ts#L72 pipeline_tag: Optional[str] processor: Optional[str] diff --git a/src/huggingface_hub/keras_mixin.py b/src/huggingface_hub/keras_mixin.py index f99159eddd..6ecdb8150f 100644 --- a/src/huggingface_hub/keras_mixin.py +++ b/src/huggingface_hub/keras_mixin.py @@ -157,7 +157,7 @@ def save_pretrained_keras( card. Requires graphviz and pydot to be installed. tags (Union[`str`,`list`], *optional*): List of tags that are related to model or string of a single tag. See example tags - [here](https://github.com/huggingface/hub-docs/blame/main/modelcard.md). + [here](https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1). model_save_kwargs(`dict`, *optional*): model_save_kwargs will be passed to [`tf.keras.models.save_model()`](https://www.tensorflow.org/api_docs/python/tf/keras/models/save_model). @@ -339,7 +339,7 @@ def push_to_hub_keras( Whether or not to include optimizer during serialization. tags (Union[`list`, `str`], *optional*): List of tags that are related to model or string of a single tag. See example tags - [here](https://github.com/huggingface/hub-docs/blame/main/modelcard.md). + [here](https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1). plot_model (`bool`, *optional*, defaults to `True`): Setting this to `True` will plot the model and put it in the model card. Requires graphviz and pydot to be installed. diff --git a/src/huggingface_hub/repocard_data.py b/src/huggingface_hub/repocard_data.py index e4db195016..df6af76344 100644 --- a/src/huggingface_hub/repocard_data.py +++ b/src/huggingface_hub/repocard_data.py @@ -232,7 +232,7 @@ class ModelCardData(CardData): https://huggingface.co/docs/hub/repositories-licenses. Defaults to None. library_name (`str`, *optional*): Name of library used by this model. Example: keras or any library from - https://github.com/huggingface/hub-docs/blob/main/js/src/lib/interfaces/Libraries.ts. + https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts. Defaults to None. tags (`List[str]`, *optional*): List of tags to add to your model that can be used when filtering on the Hugging