Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,6 @@ import streamlit as st
|
|
6 |
import os
|
7 |
import io
|
8 |
|
9 |
-
# Set the Tesseract path explicitly
|
10 |
-
pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract' # Linux/macOS
|
11 |
-
# pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' # Windows
|
12 |
-
|
13 |
# Set up the translation pipelines with error handling
|
14 |
try:
|
15 |
translator_to_english = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en")
|
|
|
6 |
import os
|
7 |
import io
|
8 |
|
|
|
|
|
|
|
|
|
9 |
# Set up the translation pipelines with error handling
|
10 |
try:
|
11 |
translator_to_english = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en")
|