Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,9 @@ def read_docx(file):
|
|
50 |
text += paragraph.text + '\n'
|
51 |
return text
|
52 |
|
|
|
|
|
|
|
53 |
# Function to read image files and extract text
|
54 |
def read_image(file):
|
55 |
image = Image.open(file)
|
|
|
50 |
text += paragraph.text + '\n'
|
51 |
return text
|
52 |
|
53 |
+
# Specify Tesseract path (adjust if necessary)
|
54 |
+
pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract'
|
55 |
+
|
56 |
# Function to read image files and extract text
|
57 |
def read_image(file):
|
58 |
image = Image.open(file)
|