Spaces:
Runtime error
Runtime error
adding rayan prompt
Browse files
app.py
CHANGED
@@ -535,7 +535,7 @@ if st.session_state.get('button') == True:
|
|
535 |
ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, preference)
|
536 |
st.markdown('##### Here is the recommended Generated Email for you:')
|
537 |
with st.expander('', expanded=True):
|
538 |
-
st.markdown('{}
|
539 |
else:
|
540 |
email_body_opt=email_body
|
541 |
if(preference):
|
@@ -548,7 +548,7 @@ if st.session_state.get('button') == True:
|
|
548 |
st.markdown('##### The model predicts that it achieves a <span style="color:yellow">{}</span> of <span style="color:yellow">{}</span>%'.format(target,tmval), unsafe_allow_html=True)
|
549 |
st.markdown('##### Here is the recommended Generated Email for you:')
|
550 |
with st.expander('', expanded=True):
|
551 |
-
st.markdown('{}
|
552 |
|
553 |
# st.session_state['button'] = False
|
554 |
# preference= "character counts: "+str(573)+", Target Rate: "+str(37.2)
|
|
|
535 |
ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, preference)
|
536 |
st.markdown('##### Here is the recommended Generated Email for you:')
|
537 |
with st.expander('', expanded=True):
|
538 |
+
st.markdown('{}'.format(ai_generated_email),unsafe_allow_html=True)
|
539 |
else:
|
540 |
email_body_opt=email_body
|
541 |
if(preference):
|
|
|
548 |
st.markdown('##### The model predicts that it achieves a <span style="color:yellow">{}</span> of <span style="color:yellow">{}</span>%'.format(target,tmval), unsafe_allow_html=True)
|
549 |
st.markdown('##### Here is the recommended Generated Email for you:')
|
550 |
with st.expander('', expanded=True):
|
551 |
+
st.markdown('{}'.format(optimized_email),unsafe_allow_html=True)
|
552 |
|
553 |
# st.session_state['button'] = False
|
554 |
# preference= "character counts: "+str(573)+", Target Rate: "+str(37.2)
|