Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 001b179

Browse files
SamSaffrontgxworld
andauthored
Update lib/utils/image_to_text.rb
Co-authored-by: Alan Guo Xiang Tan <[email protected]>
1 parent 7d222ec commit 001b179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/image_to_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def extract_text_from_page(page)
144144

145145
def extract_text_with_tesseract(page)
146146
# return nil if we can not find tessaract binary
147-
return nil if !Discourse::Utils.which("tesseract")
147+
return nil if !self.class.tesseract_installed?
148148
upload_path =
149149
if page.local?
150150
Discourse.store.path_for(page)

0 commit comments

Comments
 (0)