cd14 commited on
Commit
dbd5fa9
·
1 Parent(s): cef28ac

fixed cta button value parse

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -548,7 +548,7 @@ def get_predictions(selected_variable, selected_industry, selected_campaign,
548
  text_code_dict = dict(zip(training_dataset.cta_text, training_dataset.text_code))
549
  st.markdown('##### CTA_menue is: <span style="color:yellow">{}</span>'.format(cta_menu), unsafe_allow_html=True)
550
  for ip_idx, ip in enumerate(cta_menu): # For each CTA selected
551
- if ip.value == True:
552
  print(f'\n\x1b[4mCall-To-Action button {int(ip_idx)+1}\x1b[0m: ')
553
  cta_ind = ip_idx
554
  selected_color = cta_col[cta_ind]
 
548
  text_code_dict = dict(zip(training_dataset.cta_text, training_dataset.text_code))
549
  st.markdown('##### CTA_menue is: <span style="color:yellow">{}</span>'.format(cta_menu), unsafe_allow_html=True)
550
  for ip_idx, ip in enumerate(cta_menu): # For each CTA selected
551
+ if ip[1]['value'] == True:
552
  print(f'\n\x1b[4mCall-To-Action button {int(ip_idx)+1}\x1b[0m: ')
553
  cta_ind = ip_idx
554
  selected_color = cta_col[cta_ind]