Spaces:
Runtime error
Runtime error
adding gen ai support
Browse files
app.py
CHANGED
|
@@ -505,7 +505,7 @@ if st.button('Generate Predictions'):
|
|
| 505 |
prefrence_variables,
|
| 506 |
index=1
|
| 507 |
)
|
| 508 |
-
if(
|
| 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)
|
|
|
|
| 505 |
prefrence_variables,
|
| 506 |
index=1
|
| 507 |
)
|
| 508 |
+
if(preference):
|
| 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)
|