Skip to content

Commit c8a7c01

Browse files
committed
_load_imgs类型判断修复
1 parent a5f1424 commit c8a7c01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

rapid_table/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ def __call__(
121121
def _load_imgs(
122122
self, img_content: Union[Sequence[InputType], InputType]
123123
) -> List[np.ndarray]:
124-
img_contents = (
125-
[img_content] if isinstance(img_content, InputType) else img_content
126-
)
124+
img_contents = img_content if isinstance(img_content, list) else [img_content]
127125
return [self.load_img(img) for img in img_contents]
128126

129127
def get_ocr_results(

0 commit comments

Comments
 (0)