Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ warnings.filterwarnings('ignore')
|
|
35 |
# For Linux: "/usr/bin/tesseract"
|
36 |
try:
|
37 |
# You can set your Tesseract path here
|
38 |
-
TESSERACT_PATH = os.getenv("TESSERACT_PATH", r'
|
39 |
pytesseract.pytesseract.tesseract_cmd = TESSERACT_PATH
|
40 |
except:
|
41 |
pass # Use default path
|
|
|
35 |
# For Linux: "/usr/bin/tesseract"
|
36 |
try:
|
37 |
# You can set your Tesseract path here
|
38 |
+
TESSERACT_PATH = os.getenv("TESSERACT_PATH", r'"/usr/bin/tesseract"') # Default for Linux
|
39 |
pytesseract.pytesseract.tesseract_cmd = TESSERACT_PATH
|
40 |
except:
|
41 |
pass # Use default path
|