XPMaster commited on
Commit
d34ef4e
·
1 Parent(s): c1990d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -30
app.py CHANGED
@@ -1,34 +1,22 @@
1
  import streamlit as st
2
 
3
- def main():
4
- st.title("Data Upload for Analysis")
5
 
6
- # Create a single row with three columns for the file uploaders and buttons
7
- col1, col2, col3 = st.columns(3)
 
 
 
 
 
 
8
 
9
- with col1:
10
- st.header("Premium")
11
- premium_file = st.file_uploader("Drop your Premium CSV here", type=['csv'], key="premium")
12
- if premium_file is not None:
13
- st.markdown(" ")
14
- st.markdown(" ")
15
- st.button("Proceed with Premium Analysis", key="premium_proceed")
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")