Update dump compare tools- remove tempfile utilization
Browse files- apps/dump_compare.py +7 -2
apps/dump_compare.py
CHANGED
|
@@ -40,13 +40,16 @@ def detect_dist_col(columns):
|
|
| 40 |
|
| 41 |
# === Interface Streamlit ===
|
| 42 |
|
| 43 |
-
st.title("📊 Dump Compare Tool
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
old_file = st.file_uploader("Upload Old Dump (.xlsb)", type=["xlsb"], key="old")
|
| 46 |
new_file = st.file_uploader("Upload New Dump (.xlsb)", type=["xlsb"], key="new")
|
| 47 |
|
| 48 |
sheet_list_input = st.text_input(
|
| 49 |
-
"Enter
|
| 50 |
)
|
| 51 |
|
| 52 |
if st.button("Run Comparison", type="primary", use_container_width=True):
|
|
@@ -128,4 +131,6 @@ if st.button("Run Comparison", type="primary", use_container_width=True):
|
|
| 128 |
data=output_buffer.getvalue(),
|
| 129 |
file_name="differences.zip",
|
| 130 |
mime="application/zip",
|
|
|
|
|
|
|
| 131 |
)
|
|
|
|
| 40 |
|
| 41 |
# === Interface Streamlit ===
|
| 42 |
|
| 43 |
+
st.title("📊 Dump Compare Tool")
|
| 44 |
+
st.markdown(
|
| 45 |
+
":blue[**Upload the old and new dumps, then input the object class (comma-separated) to compare**]"
|
| 46 |
+
)
|
| 47 |
|
| 48 |
old_file = st.file_uploader("Upload Old Dump (.xlsb)", type=["xlsb"], key="old")
|
| 49 |
new_file = st.file_uploader("Upload New Dump (.xlsb)", type=["xlsb"], key="new")
|
| 50 |
|
| 51 |
sheet_list_input = st.text_input(
|
| 52 |
+
"Enter object class (comma-separated)", placeholder="e.g. BCF, BTS, CELL"
|
| 53 |
)
|
| 54 |
|
| 55 |
if st.button("Run Comparison", type="primary", use_container_width=True):
|
|
|
|
| 131 |
data=output_buffer.getvalue(),
|
| 132 |
file_name="differences.zip",
|
| 133 |
mime="application/zip",
|
| 134 |
+
type="primary",
|
| 135 |
+
on_click="ignore",
|
| 136 |
)
|