Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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):
|