Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
magic_pdf
Commits
e89b93b9
Commit
e89b93b9
authored
Nov 13, 2024
by
zhougaofeng
Browse files
Update ocr_vllm_client.py
parent
7d2750a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/dict2md/ocr_vllm_client.py
magic_pdf/dict2md/ocr_vllm_client.py
+1
-1
No files found.
magic_pdf/dict2md/ocr_vllm_client.py
View file @
e89b93b9
...
...
@@ -108,7 +108,7 @@ def unparse_text(parsed_text):
return
unparsed_text
def
compress_image
(
image_path
,
max_size
=
(
2
0
48
,
2
0
48
)):
def
compress_image
(
image_path
,
max_size
=
(
2
2
48
,
2
2
48
)):
img
=
Image
.
open
(
image_path
)
width
,
height
=
img
.
size
aspect_ratio
=
width
/
height
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment