Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,11 @@ import io
|
|
| 19 |
import pytesseract # Tesseract OCR
|
| 20 |
from dotenv import load_dotenv # For .env file
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# Load environment variables
|
| 23 |
load_dotenv()
|
| 24 |
|
|
|
|
| 19 |
import pytesseract # Tesseract OCR
|
| 20 |
from dotenv import load_dotenv # For .env file
|
| 21 |
|
| 22 |
+
import pytesseract
|
| 23 |
+
|
| 24 |
+
# Set the Tesseract executable path
|
| 25 |
+
pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract' # Linux/macOS
|
| 26 |
+
|
| 27 |
# Load environment variables
|
| 28 |
load_dotenv()
|
| 29 |
|