Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,34 +1,34 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def main():
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
|
| 33 |
if __name__ == "__main__":
|
| 34 |
main()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def main():
|
| 4 |
+
st.title("Data Upload for Analysis")
|
| 5 |
+
|
| 6 |
+
# Set the layout for file uploaders
|
| 7 |
+
layout = st.columns(3)
|
| 8 |
+
# Initialize a variable for each file to None
|
| 9 |
+
premium_file = claims_data_file = claims_count_file = None
|
| 10 |
+
|
| 11 |
+
with layout[0]:
|
| 12 |
+
st.header("Premium")
|
| 13 |
+
premium_file = st.file_uploader("Drop your Premium CSV here", type=['csv'], key="premium")
|
| 14 |
+
|
| 15 |
+
with layout[1]:
|
| 16 |
+
st.header("Incurred Claims & Recoveries Data")
|
| 17 |
+
claims_data_file = st.file_uploader("Drop your Claims & Recoveries CSV here", type=['csv'], key="claims_data")
|
| 18 |
+
|
| 19 |
+
with layout[2]:
|
| 20 |
+
st.header("Claims Count")
|
| 21 |
+
claims_count_file = st.file_uploader("Drop your Claims Count CSV here", type=['csv'], key="claims_count")
|
| 22 |
+
|
| 23 |
+
# Check if files are uploaded and if so, display the proceed buttons
|
| 24 |
+
if premium_file is not None:
|
| 25 |
+
st.button("Proceed with Premium Analysis", key="premium_proceed")
|
| 26 |
+
|
| 27 |
+
if claims_data_file is not None:
|
| 28 |
+
st.button("Proceed with Claims Data Analysis", key="claims_data_proceed")
|
| 29 |
+
|
| 30 |
+
if claims_count_file is not None:
|
| 31 |
+
st.button("Proceed with Claims Count Analysis", key="claims_count_proceed")
|
| 32 |
|
| 33 |
if __name__ == "__main__":
|
| 34 |
main()
|