Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,8 @@ def pre_query(sender, recipient, recipient_name, context, input, model_id):
|
|
68 |
return
|
69 |
|
70 |
def set_email_link(email, recipient_address, subject):
|
71 |
-
|
|
|
72 |
return link
|
73 |
|
74 |
demo = gr.Blocks()
|
|
|
68 |
return
|
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', '<b> ')
|
73 |
return link
|
74 |
|
75 |
demo = gr.Blocks()
|