Skip to content

Commit

Permalink
Update references to hub-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishig authored Nov 27, 2023
1 parent 97ccd1c commit 305e8ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/huggingface_hub/hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions src/huggingface_hub/keras_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/huggingface_hub/repocard_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 305e8ce

Please sign in to comment.