Skip to content

Commit 9340ee3

Browse files
committed
Remove Optional for BoundingBox.label
1 parent 9ffebc8 commit 9340ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

genai/bounding_box/boundingbox_with_txt_img.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class BoundingBox(BaseModel):
3636
Attributes:
3737
box_2d (list[int]): A list of integers representing the 2D coordinates of the bounding box,
3838
typically in the format [x_min, y_min, x_max, y_max].
39-
label (str): Optional: A string representing the label or class associated with the object within the bounding box.
39+
label (str): A string representing the label or class associated with the object within the bounding box.
4040
"""
4141

4242
box_2d: list[int]
43-
label: str | None = None
43+
label: str
4444

4545
def plot_bounding_boxes(image_uri: str, bounding_boxes: list[BoundingBox]) -> None:
4646
"""

0 commit comments

Comments
 (0)