Spaces:
Runtime error
Runtime error
fixed cta button value parse
Browse files
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
|
| 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]
|