We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f1424 commit c8a7c01Copy full SHA for c8a7c01
1 file changed
rapid_table/main.py
@@ -121,9 +121,7 @@ def __call__(
121
def _load_imgs(
122
self, img_content: Union[Sequence[InputType], InputType]
123
) -> List[np.ndarray]:
124
- img_contents = (
125
- [img_content] if isinstance(img_content, InputType) else img_content
126
- )
+ img_contents = img_content if isinstance(img_content, list) else [img_content]
127
return [self.load_img(img) for img in img_contents]
128
129
def get_ocr_results(
0 commit comments