Skip to content

Commit 79a469d

Browse files
authored
update the sentence_similarity docstring (#3374) (#3375)
* update the sentence_similarity docstring * update _async_client docstring as well
1 parent 3d19ed4 commit 79a469d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/huggingface_hub/inference/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ def sentence_similarity(
16131613
Defaults to None.
16141614
16151615
Returns:
1616-
`List[float]`: The embedding representing the input text.
1616+
`List[float]`: The similarity scores between the main sentence and the given comparison sentences.
16171617
16181618
Raises:
16191619
[`InferenceTimeoutError`]:

src/huggingface_hub/inference/_generated/_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ async def sentence_similarity(
16631663
Defaults to None.
16641664
16651665
Returns:
1666-
`List[float]`: The embedding representing the input text.
1666+
`List[float]`: The similarity scores between the main sentence and the given comparison sentences.
16671667
16681668
Raises:
16691669
[`InferenceTimeoutError`]:

0 commit comments

Comments
 (0)