cd14 commited on
Commit
fc1b45e
·
1 Parent(s): 4f60771

adding gen ai support

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -505,12 +505,10 @@ if st.button('Generate Predictions'):
505
  prefrence_variables,
506
  index=1
507
  )
508
- for x in sel_var_values:
509
- if str(x) in preference:
510
- pref_cc=x
511
- ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, pref_cc)
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))