Spaces:
Runtime error
Runtime error
dependency
Browse files- app.py +2 -3
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -15,7 +15,6 @@ import string
|
|
| 15 |
import os
|
| 16 |
import re
|
| 17 |
|
| 18 |
-
os.system('pip install -q pytesseract')
|
| 19 |
import pytesseract
|
| 20 |
|
| 21 |
st.title("Extract info from Files")
|
|
@@ -34,8 +33,8 @@ output = st.selectbox('Select the type of output', ('keys', 'response'))
|
|
| 34 |
filters = ['Gaussian', 'Low pass', 'High Pass', 'System defined']
|
| 35 |
filter = st.sidebar.selectbox("Select the type of filter to preprocess the image", filters)
|
| 36 |
|
| 37 |
-
tes = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe'
|
| 38 |
-
pytesseract.pytesseract.tesseract_cmd = tes
|
| 39 |
|
| 40 |
extractor = yake.KeywordExtractor()
|
| 41 |
language = 'en'
|
|
|
|
| 15 |
import os
|
| 16 |
import re
|
| 17 |
|
|
|
|
| 18 |
import pytesseract
|
| 19 |
|
| 20 |
st.title("Extract info from Files")
|
|
|
|
| 33 |
filters = ['Gaussian', 'Low pass', 'High Pass', 'System defined']
|
| 34 |
filter = st.sidebar.selectbox("Select the type of filter to preprocess the image", filters)
|
| 35 |
|
| 36 |
+
# tes = 'C:\\Program Files\\Tesseract-OCR\\tesseract.exe'
|
| 37 |
+
# pytesseract.pytesseract.tesseract_cmd = tes
|
| 38 |
|
| 39 |
extractor = yake.KeywordExtractor()
|
| 40 |
language = 'en'
|
requirements.txt
CHANGED
|
@@ -5,4 +5,5 @@ yake
|
|
| 5 |
gtts
|
| 6 |
sklearn
|
| 7 |
PILLOW
|
| 8 |
-
PyMuPDF
|
|
|
|
|
|
| 5 |
gtts
|
| 6 |
sklearn
|
| 7 |
PILLOW
|
| 8 |
+
PyMuPDF
|
| 9 |
+
pytesseract
|