tjxj commited on
Commit
6f444fd
·
1 Parent(s): ab50420

Add application file

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -8,7 +8,9 @@ from subprocess import STDOUT #os process manipuation
8
  import os
9
  import camelot as cam # extracting tables from PDFs
10
 
 
11
  os.system('apt-get install -y ghostscript')
 
12
  st.title("PDF Table Extractor")
13
 
14
  input_pdf = st.file_uploader(label = "", type = 'pdf')
 
8
  import os
9
  import camelot as cam # extracting tables from PDFs
10
 
11
+ @st.cache
12
  os.system('apt-get install -y ghostscript')
13
+
14
  st.title("PDF Table Extractor")
15
 
16
  input_pdf = st.file_uploader(label = "", type = 'pdf')
requirements.txt CHANGED
@@ -4,4 +4,4 @@ xlsxwriter
4
  pandas
5
  streamlit
6
  opencv-python
7
- ghostscript
 
4
  pandas
5
  streamlit
6
  opencv-python
7
+ ghostscript==0.7