Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,34 +1,22 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
with col2:
|
| 18 |
-
st.header("Incurred Claims & Recoveries Data")
|
| 19 |
-
claims_data_file = st.file_uploader("Drop your Claims & Recoveries CSV here", type=['csv'], key="claims_data")
|
| 20 |
-
if claims_data_file is not None:
|
| 21 |
-
st.markdown(" ")
|
| 22 |
-
st.markdown(" ")
|
| 23 |
-
st.button("Proceed with Claims Data Analysis", key="claims_data_proceed")
|
| 24 |
-
|
| 25 |
-
with col3:
|
| 26 |
-
st.header("Claims Count")
|
| 27 |
-
claims_count_file = st.file_uploader("Drop your Claims Count CSV here", type=['csv'], key="claims_count")
|
| 28 |
-
if claims_count_file is not None:
|
| 29 |
-
st.markdown(" ")
|
| 30 |
-
st.markdown(" ")
|
| 31 |
-
st.button("Proceed with Claims Count Analysis", key="claims_count_proceed")
|
| 32 |
-
|
| 33 |
-
if __name__ == "__main__":
|
| 34 |
-
main()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# Title at the top center
|
| 4 |
+
st.title('Dashboard')
|
| 5 |
|
| 6 |
+
# First row with three text components
|
| 7 |
+
col1, col2, col3 = st.columns(3)
|
| 8 |
+
with col1:
|
| 9 |
+
st.text("Premiums")
|
| 10 |
+
with col2:
|
| 11 |
+
st.text("Incurred Claims Recoveries Data")
|
| 12 |
+
with col3:
|
| 13 |
+
st.text("Claims Count")
|
| 14 |
|
| 15 |
+
# Second row with three file upload buttons
|
| 16 |
+
upload_col1, upload_col2, upload_col3 = st.columns(3)
|
| 17 |
+
with upload_col1:
|
| 18 |
+
st.file_uploader("Upload Premiums Data", key="premiums")
|
| 19 |
+
with upload_col2:
|
| 20 |
+
st.file_uploader("Upload Incurred Claims Recoveries Data", key="claims_recoveries")
|
| 21 |
+
with upload_col3:
|
| 22 |
+
st.file_uploader("Upload Claims Count Data", key="claims_count")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|