Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ import streamlit as st
|
|
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")
|
|
|
6 |
import os
|
7 |
import io
|
8 |
|
9 |
+
# Set the Tesseract path explicitly
|
10 |
+
pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract' # Default path in most Linux systems
|
11 |
+
|
12 |
# Set up the translation pipelines with error handling
|
13 |
try:
|
14 |
translator_to_english = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en")
|