Vishwas1 commited on
Commit
7a87bbf
·
verified ·
1 Parent(s): 708476e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import pytesseract
4
  import gradio as gr
5
 
6
  # Ensure Tesseract is configured with Marathi language support
 
7
  # Install Marathi language: sudo apt-get install tesseract-ocr-mar
8
 
9
  def extract_images_from_pdf(pdf_path):
 
4
  import gradio as gr
5
 
6
  # Ensure Tesseract is configured with Marathi language support
7
+ pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Default on Linux-based HF Spaces
8
  # Install Marathi language: sudo apt-get install tesseract-ocr-mar
9
 
10
  def extract_images_from_pdf(pdf_path):