rushidarge commited on
Commit
24d48f2
1 Parent(s): dbbb573

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -114,6 +114,13 @@ if uploaded_file is not None:
114
  accident_source_pred = acc_src_model.predict(X_bert_enc)
115
  excel_data['predicted_accident_src'] = accident_source_pred
116
 
 
 
 
 
 
 
 
117
  # Create a new Excel file with the processed data
118
  output_filename = "processed_data.xlsx"
119
  excel_data.to_excel(output_filename, index=False)
 
114
  accident_source_pred = acc_src_model.predict(X_bert_enc)
115
  excel_data['predicted_accident_src'] = accident_source_pred
116
 
117
+
118
+ st.dataframe(excel_data) # Display the processed data
119
+
120
+ # Add a link to download the processed data
121
+ st.markdown(get_binary_file_downloader_link(excel_data, 'my_processed_file.xlsx', 'Download Processed Data'), unsafe_allow_html=True)
122
+
123
+
124
  # Create a new Excel file with the processed data
125
  output_filename = "processed_data.xlsx"
126
  excel_data.to_excel(output_filename, index=False)