Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,16 +104,15 @@ with tabs[0]:
|
|
| 104 |
excel_buffer = io.BytesIO()
|
| 105 |
with pd.ExcelWriter(excel_buffer, engine='xlsxwriter') as writer:
|
| 106 |
sorted_df.to_excel(writer, index=False, sheet_name='Shipment Details')
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
st.download_button(
|
| 111 |
label="📥 Download Shipment Details as Excel",
|
| 112 |
data=excel_data,
|
| 113 |
file_name="shipment_details.xlsx",
|
| 114 |
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
| 115 |
-
|
| 116 |
-
|
| 117 |
with tabs[1]:
|
| 118 |
st.header("Upload CTN File for Last Mile Summary")
|
| 119 |
ctn_file = st.file_uploader("Upload Excel with Last Mile Service", type=["xlsx"], key="ctn_upload")
|
|
|
|
| 104 |
excel_buffer = io.BytesIO()
|
| 105 |
with pd.ExcelWriter(excel_buffer, engine='xlsxwriter') as writer:
|
| 106 |
sorted_df.to_excel(writer, index=False, sheet_name='Shipment Details')
|
| 107 |
+
excel_data = excel_buffer.getvalue()
|
| 108 |
+
|
|
|
|
| 109 |
st.download_button(
|
| 110 |
label="📥 Download Shipment Details as Excel",
|
| 111 |
data=excel_data,
|
| 112 |
file_name="shipment_details.xlsx",
|
| 113 |
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
| 114 |
+
)
|
| 115 |
+
|
| 116 |
with tabs[1]:
|
| 117 |
st.header("Upload CTN File for Last Mile Summary")
|
| 118 |
ctn_file = st.file_uploader("Upload Excel with Last Mile Service", type=["xlsx"], key="ctn_upload")
|