adjust image load

This commit is contained in:
Pete Matsyburka committed 2026-05-21 21:44:13 +03:00
1 parent 9e4da5948b
commit 07841722ac
9 files changed
+42 -51

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ module Templates
split_page: false, aspect_ratio: false, padding: nil, page_number: nil)
return [[], nil] if page_number && page_number != 0
image = Vips::Image.new_from_buffer(io.read, '')
image = ImageUtils.load_vips(io.read, content_type: attachment.content_type)
fields = inference.call(image, confidence:, nms:, nmm:, split_page:,
temperature:, aspect_ratio:, padding:)