Ninad077 commited on
Commit
160cdf5
·
verified ·
1 Parent(s): ed8e109

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 = Product_3
512
-
513
  if threshold == 'Capping value':
514
- expected_billing = Product_3 if Capping_or_Minimum_Guarantee_3 > Product_3 else Capping_or_Minimum_Guarantee_3
515
  elif threshold == 'Minimum Guarantee':
516
- expected_billing = Product_3 if Capping_or_Minimum_Guarantee_3 < Product_3 else Capping_or_Minimum_Guarantee_3
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='
 
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='