Spaces:
Runtime error
Runtime error
bug fixing for df_recom_extra
Browse files
app.py
CHANGED
@@ -457,17 +457,17 @@ def select_cta_button(ccolor, text):
|
|
457 |
color_rgb=get_rgb(str(st.session_state.ccolor[x]))
|
458 |
color_img=create_image(100,30,color_rgb)
|
459 |
# color_img=add_text(color_img,"Call_To_Action text: "+str(st.session_state.text[x]))
|
460 |
-
col1, col2, col3 = st.columns([1,1,1])
|
461 |
with col3:
|
462 |
# st.button('1')
|
463 |
st.markdown('##### Call_To_Action text: {}'.format(str(st.session_state.text[x])))
|
464 |
with col2:
|
465 |
# st.button('2')
|
466 |
-
st.image(color_img, channels='BGR')
|
467 |
with col1:
|
468 |
ctab=st.button("Select This CTA button to optimize", key = x)
|
469 |
|
470 |
-
st.image(color_img, channels='BGR')
|
471 |
# ctab=st.button("Call_To_Action text: "+str(st.session_state.text[x])+"; color: "+str(st.session_state.ccolor[x]), key = x)
|
472 |
# ctab=st.button("Select This CTA button to optimize", key = x)
|
473 |
res=[]
|
|
|
457 |
color_rgb=get_rgb(str(st.session_state.ccolor[x]))
|
458 |
color_img=create_image(100,30,color_rgb)
|
459 |
# color_img=add_text(color_img,"Call_To_Action text: "+str(st.session_state.text[x]))
|
460 |
+
col1, col2, col3 = st.columns([1,1,1,1])
|
461 |
with col3:
|
462 |
# st.button('1')
|
463 |
st.markdown('##### Call_To_Action text: {}'.format(str(st.session_state.text[x])))
|
464 |
with col2:
|
465 |
# st.button('2')
|
466 |
+
st.image(color_img,caption='CTA Button Color:' channels='BGR')
|
467 |
with col1:
|
468 |
ctab=st.button("Select This CTA button to optimize", key = x)
|
469 |
|
470 |
+
# st.image(color_img, channels='BGR')
|
471 |
# ctab=st.button("Call_To_Action text: "+str(st.session_state.text[x])+"; color: "+str(st.session_state.ccolor[x]), key = x)
|
472 |
# ctab=st.button("Select This CTA button to optimize", key = x)
|
473 |
res=[]
|