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 c93df9d commit 856b6ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docarray/documents/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ class MultiModalDoc(BaseDoc):
)
embedding: Optional[AnyEmbedding] = Field(
description='''Embedding field is used to store tensor objects of type
Tensorflow, PyTorch, and NumPy''',
example='''np.zeros((3, 32, 32))''',
Tensorflow, PyTorch, NumPy, and JAX''',
example='''[[1, 1, 1], [1, 0, 1], [0, 0, 1]]''',
)
bytes_: Optional[bytes] = Field(
description='''The bytes of image or video content that can be loaded
into an image or video tensor object''',
example='',
)

def __init__(self, text: Optional[str] = None, **kwargs):
Expand Down

0 comments on commit 856b6ea

Please sign in to comment.