Skip to content

Commit 11ec5c7

Browse files
andimarafiotigithub-actions[bot]
authored andcommitted
Update hf_api.py (huggingface#3194)
* Update hf_api.py Add short example detailing how to obtain a DatasetInfo object for a given dataset. * Update src/huggingface_hub/hf_api.py * add similar docs for spaces and models * format * format * Apply style fixes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a28b9f1 commit 11ec5c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/huggingface_hub/hf_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def __init__(self, **kwargs):
739739
@dataclass
740740
class ModelInfo:
741741
"""
742-
Contains information about a model on the Hub.
742+
Contains information about a model on the Hub. This object is returned by [`model_info`] and [`list_models`].
743743
744744
<Tip>
745745
@@ -938,7 +938,7 @@ def __init__(self, **kwargs):
938938
@dataclass
939939
class DatasetInfo:
940940
"""
941-
Contains information about a dataset on the Hub.
941+
Contains information about a dataset on the Hub. This object is returned by [`dataset_info`] and [`list_datasets`].
942942
943943
<Tip>
944944
@@ -1057,7 +1057,7 @@ def __init__(self, **kwargs):
10571057
@dataclass
10581058
class SpaceInfo:
10591059
"""
1060-
Contains information about a Space on the Hub.
1060+
Contains information about a Space on the Hub. This object is returned by [`space_info`] and [`list_spaces`].
10611061
10621062
<Tip>
10631063

0 commit comments

Comments
 (0)