Skip to content

Commit

Permalink
Docs: Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Mar 15, 2023
1 parent 0f02015 commit 709f3bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"tqdm",
"ujrpc",
"uring",
"uvicorn"
"uvicorn",
"vectorize"
]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ server = Server()
model = uform.get_model('unum-cloud/uform-vl-multilingual')

@server
def vectorize(description: str, photo: PIL.Image) -> numpy.ndarray:
def vectorize(description: str, photo: PIL.Image.Image) -> numpy.ndarray:
image = model.preprocess_image(photo)
tokens = model.preprocess_text(description)
joint_embedding = model.encode_multimodal(image=image, text=tokens)
Expand All @@ -174,7 +174,7 @@ response = client({
'jsonrpc': '2.0',
'id': 100,
})
# Or the same with synthatic sugar:
# Or the same with syntactic sugar:
response = client.vectorize(description=description, image=image)
```

Expand Down Expand Up @@ -259,7 +259,7 @@ int main(int argc, char** argv) {
- [x] JSON-RPC over raw TCP sockets
- [x] JSON-RPC over TCP with HTTP
- [x] Concurrent sessions
- [ ] Numpy `array` serialization
- [x] NumPy `array` and Pillow serialization
- [ ] HTTP**S** support
- [ ] Batch-capable endpoints for ML
- [ ] Zero-ETL relay calls
Expand Down

0 comments on commit 709f3bc

Please sign in to comment.