KneeKhan commited on
Commit
dca6c65
·
1 Parent(s): 97b3035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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 = "<a href=\"" + "mailto:" + recipient_address + "?subject=" + subject.replace(' ', '%20') + "&body=" + email.replace('\n', '%0A') + "\">" + "<button>Link generated!</button></a>"
73
  return link
74
 
75
  #def set_email_link_html():
@@ -99,7 +99,6 @@ with demo:
99
 
100
  with gr.Row():
101
  recipient_address = gr.Textbox(label="To", placeholder ="recipient's address")
102
- #link = gr.HTML("<a href=\"https://huggingface.co/spaces/KneeKhan/DSSG_Test\">Link not generated</a>")
103
  link = gr.HTML("<p>Link not generated</p>")
104
  send_email = gr.Button("Send my email!")
105
 
 
69
 
70
  def set_email_link(email, recipient_address, subject):
71
  email = email.replace(' ', '%20')
72
+ link = "<a href=\"" + "mailto:" + recipient_address + "?subject=" + subject.replace(' ', '%20') + "&body=" + email.replace('\n', '%0A') + "\">" + "<button>Link generated!<br>Click here</button></a>"
73
  return link
74
 
75
  #def set_email_link_html():
 
99
 
100
  with gr.Row():
101
  recipient_address = gr.Textbox(label="To", placeholder ="recipient's address")
 
102
  link = gr.HTML("<p>Link not generated</p>")
103
  send_email = gr.Button("Send my email!")
104