Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,27 +9,27 @@ iface.launch()
|
|
9 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
|
11 |
###Installing the packages###
|
12 |
-
!pip install PyPDF2
|
13 |
|
14 |
#PyPDF2: To read the PDF file from the repository path.
|
15 |
-
!pip install pdfminer.six
|
16 |
|
17 |
#Pdfplumber: To identify tables in a PDF page and extract the information from them.
|
18 |
-
!pip install pdfplumber
|
19 |
|
20 |
#Pdf2image: To convert the cropped PDF image to a PNG image.
|
21 |
-
!pip install pdf2image
|
22 |
|
23 |
#PIL: To read the PNG image.
|
24 |
-
!pip install Pillow
|
25 |
|
26 |
#Pytesseract: To extract the text from the images using OCR technology.
|
27 |
-
!pip install pytesseract
|
28 |
|
29 |
#Other libraries
|
30 |
-
!apt-get install poppler-utils
|
31 |
-
!apt install tesseract-ocr
|
32 |
-
!apt install libtesseract-dev
|
33 |
|
34 |
###Importing libraries ###
|
35 |
# To read the PDF
|
|
|
9 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
|
11 |
###Installing the packages###
|
12 |
+
! pip install PyPDF2
|
13 |
|
14 |
#PyPDF2: To read the PDF file from the repository path.
|
15 |
+
! pip install pdfminer.six
|
16 |
|
17 |
#Pdfplumber: To identify tables in a PDF page and extract the information from them.
|
18 |
+
! pip install pdfplumber
|
19 |
|
20 |
#Pdf2image: To convert the cropped PDF image to a PNG image.
|
21 |
+
! pip install pdf2image
|
22 |
|
23 |
#PIL: To read the PNG image.
|
24 |
+
! pip install Pillow
|
25 |
|
26 |
#Pytesseract: To extract the text from the images using OCR technology.
|
27 |
+
! pip install pytesseract
|
28 |
|
29 |
#Other libraries
|
30 |
+
! apt-get install poppler-utils
|
31 |
+
! apt install tesseract-ocr
|
32 |
+
! apt install libtesseract-dev
|
33 |
|
34 |
###Importing libraries ###
|
35 |
# To read the PDF
|