Skip to content

Commit

Permalink
chore(docs): add cas async usage to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 5, 2022
1 parent 27e30bb commit 7fd04d2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ curl \
{"text": "then do it right"},
{"text": "then do it better"},
{"uri": "https://clip-as-service.jina.ai/
_static/favicon.png" }], "execEndpoint":"/"}'
_static/favicon.png" }],
"execEndpoint":"/"}'
```

</td>
Expand All @@ -61,16 +62,16 @@ from clip_client import Client

c = Client('grpc://demo-cas.jina.ai:51000')

print(
c.encode(
[
'First do it',
'then do it right',
'then do it better',
'https://clip-as-service.jina.ai/_static/favicon.png',
]
)
r = c.encode(
[
'First do it',
'then do it right',
'then do it better',
'https://clip-as-service.jina.ai/\
_static/favicon.png',
]
)
print(r)
```
</td>
</tr>
Expand Down

0 comments on commit 7fd04d2

Please sign in to comment.