cd14 commited on
Commit
55df8d5
1 Parent(s): a0bb3c3

modifying the result view

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -380,7 +380,7 @@ if st.button('Generate Predictions'):
380
  print(
381
  "Sorry, Current model couldn't provide predictions on the target variable you selected.")
382
  else:
383
- st.markdown('#### Current Character Count in Your Email is: <span style="color:blue">{}</span>'.format(
384
  character_cnt), unsafe_allow_html=True)
385
  # st.info('The model predicts that it achieves a {} of {}%'.format(target, str(round(output_rate*100,2))))
386
  if target == 'conversion_rate':
@@ -388,7 +388,7 @@ if st.button('Generate Predictions'):
388
  else:
389
  target_vis = 'Open_Rate'
390
 
391
- st.markdown('#### The model predicts that it achieves a <span style="color:blue">{}</span> of <span style="color:blue">{}</span>%'.format(
392
  target_vis, str(round(output_rate*100, 3))), unsafe_allow_html=True)
393
  selected_industry_code = industry_code_dict.get(industry)
394
 
@@ -440,10 +440,10 @@ if st.button('Generate Predictions'):
440
  if selected_variable == "Click_Through_Rate":
441
  selected_variable = "Conversion_Rate"
442
 
443
- st.markdown('#### To get higher, <span style="color:blue">{}</span>, the model recommends the following options:'.format(
444
  selected_variable), unsafe_allow_html=True)
445
  if len(df_reco_opt_rank) == 0:
446
- st.markdown('#### You ve already achieved the highest, <span style="color:blue">{}</span>, with the current character count!'.format(
447
  selected_variable), unsafe_allow_html=True)
448
  else:
449
  #for _, row in df_reco_opt_rank.iterrows():
 
380
  print(
381
  "Sorry, Current model couldn't provide predictions on the target variable you selected.")
382
  else:
383
+ st.markdown('##### Current Character Count in Your Email is: <span style="color:blue">{}</span>'.format(
384
  character_cnt), unsafe_allow_html=True)
385
  # st.info('The model predicts that it achieves a {} of {}%'.format(target, str(round(output_rate*100,2))))
386
  if target == 'conversion_rate':
 
388
  else:
389
  target_vis = 'Open_Rate'
390
 
391
+ st.markdown('##### The model predicts that it achieves a <span style="color:blue">{}</span> of <span style="color:blue">{}</span>%'.format(
392
  target_vis, str(round(output_rate*100, 3))), unsafe_allow_html=True)
393
  selected_industry_code = industry_code_dict.get(industry)
394
 
 
440
  if selected_variable == "Click_Through_Rate":
441
  selected_variable = "Conversion_Rate"
442
 
443
+ st.markdown('##### To get higher, <span style="color:blue">{}</span>, the model recommends the following options:'.format(
444
  selected_variable), unsafe_allow_html=True)
445
  if len(df_reco_opt_rank) == 0:
446
+ st.markdown('##### You ve already achieved the highest, <span style="color:blue">{}</span>, with the current character count!'.format(
447
  selected_variable), unsafe_allow_html=True)
448
  else:
449
  #for _, row in df_reco_opt_rank.iterrows():