ruchi commited on
Commit
e8b5d00
·
1 Parent(s): cba6638

Fix subscriber take up count to 3 values

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -239,14 +239,14 @@ if submit_button_proposition:
239
  st.write("{}. {} and has subscriber takeout of {}".format(topology, topologySumDict[topology], topologyPopulation))
240
 
241
  st.write(" Target Subscriber takeout = {}".format(totalSubscriberTakeOut))
242
- st.write(" Total Subscriber takeout = {}".format(subscriberTakeOut))
243
 
244
- if totalSubscriberTakeOut<subscriberTakeOut:
245
- st.write("Overall there is not a close match of your proposition to the main demographic. Takeout score difference = {}".format(subscriberTakeOut-totalSubscriberTakeOut))
246
- elif totalSubscriberTakeOut==subscriberTakeOut:
247
- st.write("Great Job !! Your proposition exactly match the target subscriber take out.")
248
  else:
249
- st.write("Congratulations!! Your proposition exceeds the target subscriber take out. Additional takeout = {}".format(totalSubscriberTakeOut- subscriberTakeOut))
250
 
251
  # 250 and below with a negative factor of 2.0
252
  # 260 with a negative factor of 1.8
 
239
  st.write("{}. {} and has subscriber takeout of {}".format(topology, topologySumDict[topology], topologyPopulation))
240
 
241
  st.write(" Target Subscriber takeout = {}".format(totalSubscriberTakeOut))
242
+ st.write(" Total Subscriber take up for Year 3 = {}".format(subscriberTakeOutYear3))
243
 
244
+ if totalSubscriberTakeOut<subscriberTakeOutYear3:
245
+ st.write("Overall there is not a close match of your proposition to the main demographic. Takeout score difference = {}".format(subscriberTakeOutYear3-totalSubscriberTakeOut))
246
+ elif totalSubscriberTakeOut==subscriberTakeOutYear3:
247
+ st.write("Amazing! Your proposition exactly match the target subscriber take oup for year 3")
248
  else:
249
+ st.write("Great Job! Your proposition exceeds the target subscriber take up for year 3. Additional takeout = {}".format(totalSubscriberTakeOut- subscriberTakeOutYear3))
250
 
251
  # 250 and below with a negative factor of 2.0
252
  # 260 with a negative factor of 1.8