Spaces:
Runtime error
Runtime error
Update App_For_PDF_To_Dataframe.py
Browse filesChange the flavor of the table selection
App_For_PDF_To_Dataframe.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"""
|
3 |
Created on Sat Feb 19 20:23:31 2022
|
4 |
|
5 |
-
@author:
|
6 |
"""
|
7 |
|
8 |
import streamlit as st # data app development
|
@@ -47,9 +47,9 @@ if input_pdf is not None:
|
|
47 |
f.write(base64.b64decode(base64_pdf))
|
48 |
f.close()
|
49 |
#Select the flavor which is needed
|
50 |
-
|
51 |
# read the pdf and parse it using stream
|
52 |
-
table = cam.read_pdf("input.pdf", pages = page_number, flavor =
|
53 |
|
54 |
st.markdown("### Number of Tables")
|
55 |
|
|
|
2 |
"""
|
3 |
Created on Sat Feb 19 20:23:31 2022
|
4 |
|
5 |
+
@author: Nalla
|
6 |
"""
|
7 |
|
8 |
import streamlit as st # data app development
|
|
|
47 |
f.write(base64.b64decode(base64_pdf))
|
48 |
f.close()
|
49 |
#Select the flavor which is needed
|
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 |
|