Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ from PIL import Image
|
|
3 |
import pytesseract
|
4 |
import os
|
5 |
|
6 |
-
#
|
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 |
+
|