Nalla commited on
Commit
cfe3c75
·
1 Parent(s): 88829c8

Update App_For_PDF_To_Dataframe.py

Browse files

Changed the flavor of the table selection

Files changed (1) hide show
  1. App_For_PDF_To_Dataframe.py +2 -1
App_For_PDF_To_Dataframe.py CHANGED
@@ -47,8 +47,9 @@ if input_pdf is not None:
47
  f.write(base64.b64decode(base64_pdf))
48
  f.close()
49
 
 
50
  # read the pdf and parse it using stream
51
- table = cam.read_pdf("input.pdf", pages = page_number, flavor = 'stream')
52
 
53
  st.markdown("### Number of Tables")
54
 
 
47
  f.write(base64.b64decode(base64_pdf))
48
  f.close()
49
 
50
+ Ddlist_selection = st.selectbox("Does the pdf contain a proper table structure?",['lattice', 'stream'])
51
  # read the pdf and parse it using stream
52
+ table = cam.read_pdf("input.pdf", pages = page_number, flavor = Ddlist_selection)
53
 
54
  st.markdown("### Number of Tables")
55