Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update tags parameter docstring in ModelCardData and SpaceCardData
Signed-off-by: zeenat28-ui <zeenatriaz468@gmail.com>
  • Loading branch information
zeenat28-ui committed Sep 27, 2026
commit 808bd301f79b88d58d5af426903b3ac0954bc025
8 changes: 4 additions & 4 deletions src/huggingface_hub/repocard_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ class ModelCardData(CardData):
then the repo name is used as a default. Defaults to None.
pipeline_tag (`str`, *optional*):
The pipeline tag associated with the model. Example: "text-classification".
tags (`list[str]`, *optional*):
List of tags to add to your model that can be used when filtering on the Hugging
tags (`str` or `list[str]`, *optional*):
List of tags (or single tag) to add to your model that can be used when filtering on the Hugging
Face Hub. Defaults to None.
ignore_metadata_errors (`str`):
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
Expand Down Expand Up @@ -505,8 +505,8 @@ class SpaceCardData(CardData):
List of models related to this Space. Should be a dataset ID found on https://hf.co/models.
datasets (`list[str]`, *optional*):
List of datasets related to this Space. Should be a dataset ID found on https://hf.co/datasets.
tags (`list[str]`, *optional*):
List of tags to add to your Space that can be used when filtering on the Hub.
tags (`str` or `list[str]`, *optional*):
List of tags (or single tag) to add to your Space that can be used when filtering on the Hub.
ignore_metadata_errors (`str`):
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
the process. Use it at your own risk.
Expand Down