Raj-Master commited on
Commit
f1f65fc
·
1 Parent(s): f46b672

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -255,8 +255,14 @@ if st.button('Analyze image'):
255
  continue
256
  with tabs[3]:
257
  st.dataframe(final_csv)
258
- st.dataframe(final_csv.keys())
259
- print(final_csv.head())
 
 
 
 
 
 
260
  final_csv.columns = ['page','Date', 'Transaction_Details', 'Three', 'Deposit','Withdrawal','Balance']
261
  #final_csv = final_csv.rename(columns={1: 'Date', 2: 'Transaction_Details', 3: 'Three', 4: 'Deposit',5 : 'Withdrawal',6:'Balance'})
262
  final_csv['Date'] = final_csv['Date'].astype(str)
 
255
  continue
256
  with tabs[3]:
257
  st.dataframe(final_csv)
258
+ rough_csv= convert_df(final_csv)
259
+ st.download_button(
260
+ "rough-csv",
261
+ rough_csv,
262
+ "file.csv",
263
+ "text/csv",
264
+ key='rough-csv'
265
+ )
266
  final_csv.columns = ['page','Date', 'Transaction_Details', 'Three', 'Deposit','Withdrawal','Balance']
267
  #final_csv = final_csv.rename(columns={1: 'Date', 2: 'Transaction_Details', 3: 'Three', 4: 'Deposit',5 : 'Withdrawal',6:'Balance'})
268
  final_csv['Date'] = final_csv['Date'].astype(str)