Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,28 @@ with col3:
|
|
| 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("
|
| 19 |
with upload_col2:
|
| 20 |
-
st.file_uploader("
|
| 21 |
with upload_col3:
|
| 22 |
-
st.file_uploader("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Second row with three file upload buttons
|
| 16 |
upload_col1, upload_col2, upload_col3 = st.columns(3)
|
| 17 |
with upload_col1:
|
| 18 |
+
uploaded_file_premiums = st.file_uploader("", key="premiums")
|
| 19 |
with upload_col2:
|
| 20 |
+
uploaded_file_claims_recoveries = st.file_uploader("", key="claims_recoveries")
|
| 21 |
with upload_col3:
|
| 22 |
+
uploaded_file_claims_count = st.file_uploader("", key="claims_count")
|
| 23 |
+
|
| 24 |
+
# Third row with three buttons, enabled only if the corresponding file is uploaded
|
| 25 |
+
button_col1, button_col2, button_col3 = st.columns(3)
|
| 26 |
+
with button_col1:
|
| 27 |
+
if uploaded_file_premiums is not None:
|
| 28 |
+
st.button("Process Premiums Data")
|
| 29 |
+
else:
|
| 30 |
+
st.button("Process Premiums Data", disabled=True)
|
| 31 |
+
|
| 32 |
+
with button_col2:
|
| 33 |
+
if uploaded_file_claims_recoveries is not None:
|
| 34 |
+
st.button("Process Claims Recoveries Data")
|
| 35 |
+
else:
|
| 36 |
+
st.button("Process Claims Recoveries Data", disabled=True)
|
| 37 |
+
|
| 38 |
+
with button_col3:
|
| 39 |
+
if uploaded_file_claims_count is not None:
|
| 40 |
+
st.button("Process Claims Count Data")
|
| 41 |
+
else:
|
| 42 |
+
st.button("Process Claims Count Data", disabled=True)
|