Adding samples files to multi point dist cal
Browse files- apps/multi_points_distance_calculator.py +21 -0
- samples/Dataset1.xlsx +0 -0
- samples/Dataset2.xlsx +0 -0
apps/multi_points_distance_calculator.py
CHANGED
|
@@ -51,6 +51,27 @@ st.write(
|
|
| 51 |
"""
|
| 52 |
)
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
# Upload Dataset 1
|
| 55 |
st.subheader("Upload Dataset 1 (Reference Points)")
|
| 56 |
file1 = st.file_uploader("Upload first dataset (Excel)", type=["xlsx"], key="file1")
|
|
|
|
| 51 |
"""
|
| 52 |
)
|
| 53 |
|
| 54 |
+
dataset1_sample_file_path = "samples/Dataset1.xlsx"
|
| 55 |
+
dataset2_sample_file_path = "samples/Dataset2.xlsx"
|
| 56 |
+
|
| 57 |
+
col1, col2, col3 = st.columns(3)
|
| 58 |
+
|
| 59 |
+
with col1:
|
| 60 |
+
st.download_button(
|
| 61 |
+
label="Dataset1 Sample File",
|
| 62 |
+
data=open(dataset1_sample_file_path, "rb").read(),
|
| 63 |
+
file_name="Dataset1.xlsx",
|
| 64 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
| 65 |
+
)
|
| 66 |
+
with col2:
|
| 67 |
+
st.download_button(
|
| 68 |
+
label="Dataset2 Sample File",
|
| 69 |
+
data=open(dataset2_sample_file_path, "rb").read(),
|
| 70 |
+
file_name="Dataset2.xlsx",
|
| 71 |
+
mime="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
# Upload Dataset 1
|
| 76 |
st.subheader("Upload Dataset 1 (Reference Points)")
|
| 77 |
file1 = st.file_uploader("Upload first dataset (Excel)", type=["xlsx"], key="file1")
|
samples/Dataset1.xlsx
ADDED
|
Binary file (12.3 kB). View file
|
|
|
samples/Dataset2.xlsx
ADDED
|
Binary file (12.5 kB). View file
|
|
|