Skip to content

Commit

Permalink
fix[layoutmodel]: Fix type hints in LayoutPredictor::predict()
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Livathinos <[email protected]>
  • Loading branch information
nikos-livathinos committed Jul 18, 2024
1 parent cbfcd4e commit d6b8f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docling_ibm_models/layoutmodel/layout_predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def info(self) -> dict:
}
return info

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

0 comments on commit d6b8f0d

Please sign in to comment.