Spaces:
Runtime error
Runtime error
typo
Browse files- app.py +4 -1
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import pytesseract
|
| 3 |
from PIL import Image
|
| 4 |
# from pdf2image import convert_from_path
|
| 5 |
import pandas as pd
|
|
@@ -16,6 +15,10 @@ import string
|
|
| 16 |
import os
|
| 17 |
import re
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
st.title("Extract info from Files")
|
| 20 |
|
| 21 |
st.sidebar.title('Hyper Params')
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
from PIL import Image
|
| 3 |
# from pdf2image import convert_from_path
|
| 4 |
import pandas as pd
|
|
|
|
| 15 |
import os
|
| 16 |
import re
|
| 17 |
|
| 18 |
+
os.system('sudo apt-get install tesseract-ocr')
|
| 19 |
+
os.system('pip install -q pytesseract')
|
| 20 |
+
import pytesseract
|
| 21 |
+
|
| 22 |
st.title("Extract info from Files")
|
| 23 |
|
| 24 |
st.sidebar.title('Hyper Params')
|
requirements.txt
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
nltk
|
| 2 |
pandas
|
| 3 |
-
pytesseract
|
| 4 |
streamlit
|
| 5 |
yake
|
| 6 |
gtts
|
|
|
|
| 1 |
nltk
|
| 2 |
pandas
|
|
|
|
| 3 |
streamlit
|
| 4 |
yake
|
| 5 |
gtts
|