Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,20 +23,26 @@ with upload_col3:
|
|
| 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(
|
| 29 |
else:
|
| 30 |
-
st.button(
|
| 31 |
|
| 32 |
with button_col2:
|
| 33 |
if uploaded_file_claims_recoveries is not None:
|
| 34 |
-
st.button(
|
|
|
|
| 35 |
else:
|
| 36 |
-
st.button(
|
|
|
|
| 37 |
|
| 38 |
with button_col3:
|
| 39 |
if uploaded_file_claims_count is not None:
|
| 40 |
-
st.button(
|
| 41 |
else:
|
| 42 |
-
st.button(
|
|
|
|
| 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 |
+
premiumlabel = "Select Premiums columns"
|
| 27 |
+
incurredlabel = "Select Incurred claims columns"
|
| 28 |
+
recoverlabel = "Select Recoveries columns"
|
| 29 |
+
claimscount = "Select Claims count columns"
|
| 30 |
with button_col1:
|
| 31 |
if uploaded_file_premiums is not None:
|
| 32 |
+
st.button(premiumlabel)
|
| 33 |
else:
|
| 34 |
+
st.button(premiumlabel, disabled=True)
|
| 35 |
|
| 36 |
with button_col2:
|
| 37 |
if uploaded_file_claims_recoveries is not None:
|
| 38 |
+
st.button(claimslabel)
|
| 39 |
+
st.button(recoverlabel)
|
| 40 |
else:
|
| 41 |
+
st.button(claimslabel, disabled=True)
|
| 42 |
+
st.button(recoverlabel, disabled=True)
|
| 43 |
|
| 44 |
with button_col3:
|
| 45 |
if uploaded_file_claims_count is not None:
|
| 46 |
+
st.button(claimscount)
|
| 47 |
else:
|
| 48 |
+
st.button(claimscount, disabled=True)
|