tahirsher commited on
Commit
db19b48
·
verified ·
1 Parent(s): 3b41497

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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")