Spaces:
Runtime error
Runtime error
adding gen ai support
Browse files
app.py
CHANGED
@@ -505,12 +505,10 @@ if st.button('Generate Predictions'):
|
|
505 |
prefrence_variables,
|
506 |
index=1
|
507 |
)
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
st.markdown('##### Here is the recommended Generated Email for you:')
|
513 |
-
st.markdown('####### {}:'.format(ai_generated_email),unsafe_allow_html=True)
|
514 |
|
515 |
|
516 |
# chars_out = dict(zip(chars, sel_var_values))
|
|
|
505 |
prefrence_variables,
|
506 |
index=1
|
507 |
)
|
508 |
+
if(preferences):
|
509 |
+
ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, preference)
|
510 |
+
st.markdown('##### Here is the recommended Generated Email for you:')
|
511 |
+
st.markdown('####### {}:'.format(ai_generated_email),unsafe_allow_html=True)
|
|
|
|
|
512 |
|
513 |
|
514 |
# chars_out = dict(zip(chars, sel_var_values))
|