Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def pre_query(sender, recipient, recipient_name, context, input, model_id):
|
|
69 |
|
70 |
def set_email_link(email, recipient_address, subject):
|
71 |
email = email.replace(' ', '%20')
|
72 |
-
link = "mailto:" + recipient_address + "?subject=" + subject.replace(' ', '%20') + "&body=" + email
|
73 |
return link
|
74 |
|
75 |
demo = gr.Blocks()
|
|
|
69 |
|
70 |
def set_email_link(email, recipient_address, subject):
|
71 |
email = email.replace(' ', '%20')
|
72 |
+
link = "mailto:" + recipient_address + "?subject=" + subject.replace(' ', '%20') + "&body=" + email.replace('\n', '%0A')
|
73 |
return link
|
74 |
|
75 |
demo = gr.Blocks()
|