Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,8 @@ from PIL import Image
|
|
57 |
from pdf2image import convert_from_path
|
58 |
import pytesseract
|
59 |
import os
|
60 |
-
pdf_path="received_pdf.pdf"
|
|
|
61 |
def text_extraction(element):
|
62 |
# Extracting the text from the in-line text element
|
63 |
line_text = element.get_text()
|
|
|
57 |
from pdf2image import convert_from_path
|
58 |
import pytesseract
|
59 |
import os
|
60 |
+
#pdf_path="received_pdf.pdf"
|
61 |
+
pdf_path=pdf_content
|
62 |
def text_extraction(element):
|
63 |
# Extracting the text from the in-line text element
|
64 |
line_text = element.get_text()
|