tjxj commited on
Commit
ab50420
·
1 Parent(s): 0d70c9b

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -8,14 +8,7 @@ from subprocess import STDOUT #os process manipuation
8
  import os
9
  import camelot as cam # extracting tables from PDFs
10
 
11
- # to run this only once and it's cached
12
- def gh():
13
- """install ghostscript on the linux machine"""
14
- proc = subprocess.Popen('apt-get install -y ghostscript', shell=True, stdin=None, stdout=open(os.devnull,"wb"), stderr=STDOUT, executable="/bin/bash")
15
- proc.wait()
16
-
17
- gh()
18
-
19
  st.title("PDF Table Extractor")
20
 
21
  input_pdf = st.file_uploader(label = "", type = 'pdf')
 
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')