Skip to content

Commit d6b8f0d

Browse files
fix[layoutmodel]: Fix type hints in LayoutPredictor::predict()
Signed-off-by: Nikos Livathinos <[email protected]>
1 parent cbfcd4e commit d6b8f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docling_ibm_models/layoutmodel/layout_predictor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def info(self) -> dict:
118118
}
119119
return info
120120

121-
def predict(self, orig_img: Union[Image, np.array]) -> Iterable[dict]:
121+
def predict(self, orig_img: Union[Image.Image, np.ndarray]) -> Iterable[dict]:
122122
r"""
123123
Predict bounding boxes for a given image.
124124
The origin (0, 0) is the top-left corner and the predicted bbox coords are provided as:

0 commit comments

Comments
 (0)