File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/huggingface_hub/inference Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1613,7 +1613,7 @@ def sentence_similarity(
1613
1613
Defaults to None.
1614
1614
1615
1615
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 .
1617
1617
1618
1618
Raises:
1619
1619
[`InferenceTimeoutError`]:
Original file line number Diff line number Diff line change @@ -1663,7 +1663,7 @@ async def sentence_similarity(
1663
1663
Defaults to None.
1664
1664
1665
1665
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 .
1667
1667
1668
1668
Raises:
1669
1669
[`InferenceTimeoutError`]:
You can’t perform that action at this time.
0 commit comments