"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c7027f11d6af93523d4ea842f0686a5c221b3146"
Commit e89b93b9 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update ocr_vllm_client.py

parent 7d2750a3
...@@ -108,7 +108,7 @@ def unparse_text(parsed_text): ...@@ -108,7 +108,7 @@ def unparse_text(parsed_text):
return unparsed_text return unparsed_text
def compress_image(image_path, max_size=(2048, 2048)): def compress_image(image_path, max_size=(2248, 2248)):
img = Image.open(image_path) img = Image.open(image_path)
width, height = img.size width, height = img.size
aspect_ratio = width / height aspect_ratio = width / height
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment