Spaces:
Runtime error
Runtime error
Update App_For_PDF_To_Dataframe.py
Browse files
App_For_PDF_To_Dataframe.py
CHANGED
@@ -75,7 +75,7 @@ if input_pdf is not None:
|
|
75 |
@st.cache
|
76 |
def convert_df(df):
|
77 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
78 |
-
return df.to_csv().encode('utf-8')
|
79 |
|
80 |
csv = convert_df(table[int(option)-1].df)
|
81 |
|
|
|
75 |
@st.cache
|
76 |
def convert_df(df):
|
77 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
78 |
+
return df.to_csv(index=False).encode('utf-8')
|
79 |
|
80 |
csv = convert_df(table[int(option)-1].df)
|
81 |
|