Skip to content

Commit

Permalink
chore(docs): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 9, 2022
1 parent b56a649 commit d2cd59e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ curl \
-X POST http://demo-cas.jina.ai:51001/post \
-H 'Content-Type: application/json' \
-d '{"data":[{"uri": "https://picsum.photos/id/1/300/300",
"matches": [{"text": "this is a woman in the photo"},
{"text": "this is a man in the photo"}]}],
"matches": [{"text": "there is a woman in the photo"},
{"text": "there is a man in the photo"}]}],
"execEndpoint":"/rank"}' \
| jq ".data[].matches[] | (.text, .scores.clip_score.value)"
```

gives:

```
"this is a man in the photo"
0.5785414576530457
"this is a woman in the photo"
0.4214586019515991
"there is a woman in the photo"
0.626907229423523
"there is a man in the photo"
0.37309277057647705
```

</td>
Expand Down

0 comments on commit d2cd59e

Please sign in to comment.