cd14 commited on
Commit
677d36f
·
1 Parent(s): 5530cee

adding rayan prompt

Browse files
Files changed (1) hide show
  1. app.py +29 -0
app.py CHANGED
@@ -259,6 +259,24 @@ campaign_types = [
259
  target_variables = [
260
  'conversion_rate',
261
  'click_to_open_rate'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  ]
263
 
264
  uploaded_file = st.file_uploader(
@@ -503,6 +521,15 @@ if st.session_state.get('button') == True:
503
  if(preference is None):
504
  st.error('Please upload a email (HTML format)')
505
  else:
 
 
 
 
 
 
 
 
 
506
  if(options==None):
507
  ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, preference)
508
  st.markdown('##### Here is the recommended Generated Email for you:')
@@ -513,6 +540,8 @@ if st.session_state.get('button') == True:
513
  optimized_char_cnt, optimized_url_cnt, industry_code_dict)
514
  st.markdown('##### Current Character Count in Your Optimized Email is: {}'.format(charc), unsafe_allow_html=True)
515
  st.markdown('##### The model predicts that it achieves a {} of {}%'.format(target,tmval), unsafe_allow_html=True)
 
 
516
 
517
  # st.session_state['button'] = False
518
  # preference= "character counts: "+str(573)+", Target Rate: "+str(37.2)
 
259
  target_variables = [
260
  'conversion_rate',
261
  'click_to_open_rate'
262
+ 'Bounce Rate',
263
+ 'Spam Complaint Rate',
264
+ 'AOV',
265
+ 'CLV',
266
+ 'ROI',
267
+ 'NPS',
268
+ 'CAC',
269
+ 'Abandonment Rate',
270
+ 'Site Traffic',
271
+ 'Product Return Rate',
272
+ 'Net Profit Margin',
273
+ 'MRR',
274
+ 'ARR',
275
+ 'Churn',
276
+ 'ARPU',
277
+ 'Retention Rate',
278
+ 'Unsubscribe Rate',
279
+ 'Email ROI'
280
  ]
281
 
282
  uploaded_file = st.file_uploader(
 
521
  if(preference is None):
522
  st.error('Please upload a email (HTML format)')
523
  else:
524
+ stats_col1, stats_col2, stats_col3, stats_col4 = st.columns([1, 1, 1, 1])
525
+ with stats_col1:
526
+ st.caption("Production: Ready")
527
+ with stats_col2:
528
+ st.caption("Accuracy: 85%")
529
+ with stats_col3:
530
+ st.caption("Speed: 16.89 ms")
531
+ with stats_col4:
532
+ st.caption("Industry: Email")
533
  if(options==None):
534
  ai_generated_email=generate_example_email_with_context(email_body, campaign, industry, target, sorted_chars_out, preference)
535
  st.markdown('##### Here is the recommended Generated Email for you:')
 
540
  optimized_char_cnt, optimized_url_cnt, industry_code_dict)
541
  st.markdown('##### Current Character Count in Your Optimized Email is: {}'.format(charc), unsafe_allow_html=True)
542
  st.markdown('##### The model predicts that it achieves a {} of {}%'.format(target,tmval), unsafe_allow_html=True)
543
+ st.markdown('##### Here is the recommended Generated Email for you:')
544
+ st.markdown('{}:'.format(optimized_email),unsafe_allow_html=True)
545
 
546
  # st.session_state['button'] = False
547
  # preference= "character counts: "+str(573)+", Target Rate: "+str(37.2)