Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -508,14 +508,14 @@ if bundle_by == "Feature specific":
|
|
| 508 |
abc = ['Capping value', 'Minimum Guarantee']
|
| 509 |
threshold = st.selectbox("Threshold option:", [""] + abc)
|
| 510 |
|
| 511 |
-
initial_expected_billing =
|
| 512 |
-
|
| 513 |
if threshold == 'Capping value':
|
| 514 |
-
expected_billing =
|
| 515 |
elif threshold == 'Minimum Guarantee':
|
| 516 |
-
expected_billing =
|
| 517 |
else:
|
| 518 |
-
expected_billing = initial_expected_billing
|
| 519 |
|
| 520 |
html_content_7 = f"""
|
| 521 |
<h1 style='
|
|
|
|
| 508 |
abc = ['Capping value', 'Minimum Guarantee']
|
| 509 |
threshold = st.selectbox("Threshold option:", [""] + abc)
|
| 510 |
|
| 511 |
+
initial_expected_billing = Product_1
|
| 512 |
+
|
| 513 |
if threshold == 'Capping value':
|
| 514 |
+
expected_billing = min(Product_1, Capping_or_Minimum_Guarantee_1)
|
| 515 |
elif threshold == 'Minimum Guarantee':
|
| 516 |
+
expected_billing = max(Product_1, Capping_or_Minimum_Guarantee_1)
|
| 517 |
else:
|
| 518 |
+
expected_billing = initial_expected_billing # Default to initial Product value if no threshold selected
|
| 519 |
|
| 520 |
html_content_7 = f"""
|
| 521 |
<h1 style='
|