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 5, 2022
1 parent 2a02f29 commit 706fa62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ You can change `0.0.0.0` to the intranet or public IP address to test the connec
```python
from clip_client import Client

c = Client('grpc://demo-cas.jina.ai:51000')
c = Client('grpc://0.0.0.0:51000')
```
3. To get sentence embedding:
```python
Expand Down Expand Up @@ -245,14 +245,14 @@ da.plot_image_sprites()

#### Encode images

Start the server with `python -m clip_server`. Let's say it's at `demo-cas.jina.ai:51000` with `GRPC` protocol (you will get this information after running the server).
Start the server with `python -m clip_server`. Let's say it's at `0.0.0.0:51000` with `GRPC` protocol (you will get this information after running the server).

Create a Python client script:

```python
from clip_client import Client

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

da = c.encode(da, show_progress=True)
```
Expand Down Expand Up @@ -399,7 +399,7 @@ Now encode these 6,403 sentences, it may take 10 seconds or less depending on yo
```python
from clip_client import Client

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

r = c.encode(da, show_progress=True)
```
Expand Down Expand Up @@ -539,7 +539,7 @@ From `0.3.0` CLIP-as-service adds a new `/rank` endpoint that re-ranks cross-mod
from clip_client import Client
from docarray import Document

c = Client(server='grpc://demo-cas.jina.ai:51000')
c = Client(server='grpc://0.0.0.0:51000')
r = c.rank(
[
Document(
Expand Down

0 comments on commit 706fa62

Please sign in to comment.