Justin Grammens commited on
Commit
74707b2
·
1 Parent(s): 019be42

updated with output of the prompt of and questions

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def send_sendgrid_email(essay, email):
61
  from_email=from_email,
62
  to_emails=email,
63
  subject='Personal Leadership Profile Results',
64
- html_content=essay)
65
  try:
66
  sg = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
67
  response = sg.send(message)
@@ -116,6 +116,8 @@ def stream_leadership_essay(*answers):
116
  #yield essay, filled_prompt # Yield partial essay to the Gradio output in real-time
117
  yield essay
118
 
 
 
119
  result = send_sendgrid_email(essay, answers[28])
120
  print(result)
121
  show_alert(result)
 
61
  from_email=from_email,
62
  to_emails=email,
63
  subject='Personal Leadership Profile Results',
64
+ plain_text_content=essay)
65
  try:
66
  sg = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
67
  response = sg.send(message)
 
116
  #yield essay, filled_prompt # Yield partial essay to the Gradio output in real-time
117
  yield essay
118
 
119
+ essay = essay + "\n\n -- Prompt & Questions Below -- \n\n" + filled_prompt
120
+
121
  result = send_sendgrid_email(essay, answers[28])
122
  print(result)
123
  show_alert(result)