From 2b4eaaa0aa255f122ebd74d4f3fd2c759c494dfa Mon Sep 17 00:00:00 2001 From: ZiniuYu Date: Tue, 13 Jun 2023 18:27:12 +0800 Subject: [PATCH] docs: update readme --- README.md | 27 ++++++++++----------------- docs/index.md | 17 ++++++----------- 2 files changed, 16 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index a56955a0..31ba291e 100644 --- a/README.md +++ b/README.md @@ -38,18 +38,10 @@ CLIP-as-service is a low-latency high-scalability service for embedding images a ## Try it! -An always-online server `api.clip.jina.ai` loaded with `ViT-L-14-336::openai` is there for you to play & test. -Before you start, make sure you have obtained a personal access token from the [Jina AI Cloud](https://cloud.jina.ai/settings/tokens), -or via CLI as described in [this guide](https://docs.jina.ai/jina-ai-cloud/login/#create-a-new-pat): - -```bash -jina auth token create -e -``` - -Then, you need to configure the access token in the parameter `credential` of the client in python or set it in the HTTP request header `Authorization` as ``. - -⚠️ Our demo server `demo-cas.jina.ai` is sunset and no longer available after **15th of Sept 2022**. - +You can access to the hosted CLIP service at [Jina AI's Inference](https://cloud.jina.ai/user/inference) with free credits. +Inference provides a selection of AI models for common tasks, such as visual reasoning, question answering, or embedding modalities like texts and images. +All the available models are accessible via simple API calls - HTTPS or gRPC. +Read this [Inference Guide](https://clip-as-service.jina.ai/hosting/by-jina/) to learn more. ### Text & image embedding @@ -63,7 +55,7 @@ Then, you need to configure the access token in the parameter `credential` of th ```bash curl \ --X POST https://api.clip.jina.ai:8443/post \ +-X POST https://-http.wolf.jina.ai/post \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{"data":[{"text": "First do it"}, @@ -81,7 +73,8 @@ curl \ from clip_client import Client c = Client( - 'grpcs://api.clip.jina.ai:2096', credential={'Authorization': ''} + 'grpcs://-grpc.wolf.jina.ai', + credential={'Authorization': ''}, ) r = c.encode( @@ -117,7 +110,7 @@ There are four basic visual reasoning skills: object recognition, object countin ```bash curl \ --X POST https://api.clip.jina.ai:8443/post \ +-X POST https://-http.wolf.jina.ai/post \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{"data":[{"uri": "https://picsum.photos/id/1/300/300", @@ -146,7 +139,7 @@ gives: ```bash curl \ --X POST https://api.clip.jina.ai:8443/post \ +-X POST https://-http.wolf.jina.ai/post \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{"data":[{"uri": "https://picsum.photos/id/133/300/300", @@ -183,7 +176,7 @@ gives: ```bash curl \ --X POST https://api.clip.jina.ai:8443/post \ +-X POST https://-http.wolf.jina.ai/post \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{"data":[{"uri": "https://picsum.photos/id/102/300/300", diff --git a/docs/index.md b/docs/index.md index 6305b4f4..9b78192f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -12,15 +12,10 @@ ## Try it! -An always-online server `api.clip.jina.ai` loaded with `ViT-L-14-336::openai` is there for you to play & test. -Before you start, make sure you have obtained a personal access token from the [Jina AI Cloud](https://cloud.jina.ai/settings/tokens), -or via CLI as described in [this guide](https://docs.jina.ai/jina-ai-cloud/login/#create-a-new-pat): - -```bash -jina auth token create -e -``` - -Then, you need to configure the access token in the parameter `credential` of the client in python or set it in the HTTP request header `Authorization` as ``. +You can access to the hosted CLIP service at [Jina AI's Inference](https://cloud.jina.ai/user/inference) with free credits. +Inference provides a selection of AI models for common tasks, such as visual reasoning, question answering, or embedding modalities like texts and images. +All the available models are accessible via simple API calls - HTTPS or gRPC. +Read this [Inference Guide](https://clip-as-service.jina.ai/hosting/by-jina/) to learn more. ````{tab} via gRPC ⚡⚡ @@ -35,7 +30,7 @@ emphasize-lines: 5 from clip_client import Client c = Client( - 'grpcs://api.clip.jina.ai:2096', + 'grpcs://-grpc.wolf.jina.ai', credential={'Authorization': ''} ) @@ -59,7 +54,7 @@ print(r) emphasize-lines: 4 --- curl \ --X POST https://api.clip.jina.ai:8443/post \ +-X POST https://-http.wolf.jina.ai/post \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{"data":[{"text": "First do it"},