Skip to content

Commit

Permalink
docs: remove bytes field example
Browse files Browse the repository at this point in the history
Signed-off-by: punndcoder28 <puneethk.2899@gmail.com>
  • Loading branch information
punndcoder28 committed Sep 6, 2023
1 parent b72c09c commit 008c51f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docarray/documents/image.py
Expand Up @@ -100,19 +100,15 @@ class MultiModalDoc(BaseDoc):
example='https://github.com/docarray/docarray/blob/main/tests/toydata/image-data/apple.png?raw=true',
)
tensor: Optional[ImageTensor] = Field(
description='''Tensor object of the image which can be specifed to one of
`ImageNdArray`, `ImageTorchTensor`, `ImageTensorflowTensor`.''',
example='img.url.load()',
description='Tensor object of one of the image tensors',
)
embedding: Optional[AnyEmbedding] = Field(
description='''Embedding field is used to store tensor objects of type
Tensorflow, PyTorch, NumPy and Jax''',
example='np.zeros((3, 32, 32))',
description='Embedding field is used to store tensor objects',
example='[[0, 1, 1], [1, 0, 1], [1, 1, 0]]',
)
bytes_: Optional[ImageBytes] = Field(
description='''Bytes object of the image which is an instance of
`ImageBytes.''',
example='img.url.load_bytes()',
)

@classmethod
Expand Down

0 comments on commit 008c51f

Please sign in to comment.