Peter commited on
Commit
272dccb
1 Parent(s): 51de900

pass formatted email into link

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -68,7 +68,9 @@ def generate_text(
68
  if verbose:
69
  logging.info(f"Generated text: {response}")
70
  logging.info(f"Generation time: {rt:.2f}s")
71
- return postprocess(response), make_email_link(body=response)
 
 
72
 
73
 
74
  def get_parser():
 
68
  if verbose:
69
  logging.info(f"Generated text: {response}")
70
  logging.info(f"Generation time: {rt:.2f}s")
71
+
72
+ formatted_email = postprocess(response)
73
+ return formatted_email, make_email_link(body=formatted_email)
74
 
75
 
76
  def get_parser():