KZTech commited on
Commit
c8989a9
·
verified ·
1 Parent(s): 82dbd93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,9 +3,9 @@ from PIL import Image
3
  import pytesseract
4
  import os
5
 
6
- # Check if tesseract is available and set the correct path
7
  if os.name == 'posix': # Unix-like OS
8
- pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
9
 
10
  st.set_page_config(page_title="Image to Text OCR", layout="centered")
11
 
@@ -33,3 +33,4 @@ else:
33
 
34
 
35
 
 
 
3
  import pytesseract
4
  import os
5
 
6
+ # Ensure pytesseract points to the correct tesseract installation path
7
  if os.name == 'posix': # Unix-like OS
8
+ pytesseract.pytesseract.tesseract_cmd = "/usr/local/bin/tesseract"
9
 
10
  st.set_page_config(page_title="Image to Text OCR", layout="centered")
11
 
 
33
 
34
 
35
 
36
+