Skip to content

Commit

Permalink
docs: fix image2image search print (#4126)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Jan 5, 2022
1 parent 2bdbe3b commit 3976695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/datatype/image/image2image.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ from jina.types.request import Response

def print_matches(resp: Response): # the callback function invoked when task is done
for idx, d in enumerate(resp.docs[0].matches[:3]): # print top-3 matches
print(f'[{idx}]{d.scores["euclidean"].value:2f}: "{d.text}"')
print(f'[{idx}]{d.scores["cosine"].value:2f}: "{d.uri}"')


c = Client(protocol='http', port=12345) # connect to localhost:12345
Expand Down

0 comments on commit 3976695

Please sign in to comment.