docs: add direct link to certificate
Browse files
app.py
CHANGED
@@ -190,11 +190,12 @@ def create_certificate(passed, certificate_type, hf_username, first_name, last_n
|
|
190 |
# Add this user to our database
|
191 |
add_certified_user(hf_username, first_name, last_name, certificate_type)
|
192 |
# Add a message
|
193 |
-
message = """
|
194 |
Congratulations, you successfully completed the 2023 Hackathon π! \n
|
195 |
Since you contributed to models, datasets, and spaces- you get a Certificate of Excellence π. \n
|
196 |
You can download your certificate below β¬οΈ \n
|
197 |
-
Don't hesitate to share your certificate
|
|
|
198 |
"""
|
199 |
elif passed and certificate_type == "completion":
|
200 |
# Generate a certificate of completion
|
@@ -202,12 +203,13 @@ def create_certificate(passed, certificate_type, hf_username, first_name, last_n
|
|
202 |
# Add this user to our database
|
203 |
add_certified_user(hf_username, first_name, last_name, certificate_type)
|
204 |
# Add a message
|
205 |
-
message = """
|
206 |
Congratulations, you successfully completed the 2023 Hackathon π! \n
|
207 |
Since you contributed to at least one model, dataset, or space- you get a Certificate of Completion π. \n
|
208 |
You can download your certificate below β¬οΈ \n
|
209 |
-
Don't hesitate to share your certificate
|
210 |
You can try to get a Certificate of Excellence if you contribute to all types of repos, please don't hesitate to do so.
|
|
|
211 |
"""
|
212 |
else:
|
213 |
# Not passed yet
|
@@ -243,7 +245,7 @@ with gr.Blocks() as demo:
|
|
243 |
|
244 |
For more information about the certification process [check the hackathon page on certification](https://pseudo-lab.github.io/huggingface-hackathon23/submit.html#certification).
|
245 |
|
246 |
-
Don't hesitate to share your certificate on Twitter (tag me [@wonhseo](https://twitter.com/wonhseo), [@pseudolab](https://twitter.com/
|
247 |
""")
|
248 |
|
249 |
hf_username = gr.Textbox(placeholder="wseo", label="Your Hugging Face Username (case sensitive)")
|
|
|
190 |
# Add this user to our database
|
191 |
add_certified_user(hf_username, first_name, last_name, certificate_type)
|
192 |
# Add a message
|
193 |
+
message = f"""
|
194 |
Congratulations, you successfully completed the 2023 Hackathon π! \n
|
195 |
Since you contributed to models, datasets, and spaces- you get a Certificate of Excellence π. \n
|
196 |
You can download your certificate below β¬οΈ \n
|
197 |
+
Don't hesitate to share your certificate link below on Twitter and Linkedin (you can tag me @wonhseo, @pseudolab and @huggingface) π€
|
198 |
+
https://huggingface.co/datasets/pseudolab/huggingface-krew-hackathon2023/resolve/main/pdfs/{hf_username}.pdf
|
199 |
"""
|
200 |
elif passed and certificate_type == "completion":
|
201 |
# Generate a certificate of completion
|
|
|
203 |
# Add this user to our database
|
204 |
add_certified_user(hf_username, first_name, last_name, certificate_type)
|
205 |
# Add a message
|
206 |
+
message = f"""
|
207 |
Congratulations, you successfully completed the 2023 Hackathon π! \n
|
208 |
Since you contributed to at least one model, dataset, or space- you get a Certificate of Completion π. \n
|
209 |
You can download your certificate below β¬οΈ \n
|
210 |
+
Don't hesitate to share your certificate link below on Twitter and Linkedin (you can tag me @wonhseo, @pseudolab and @huggingface) π€ \n
|
211 |
You can try to get a Certificate of Excellence if you contribute to all types of repos, please don't hesitate to do so.
|
212 |
+
https://huggingface.co/datasets/pseudolab/huggingface-krew-hackathon2023/resolve/main/pdfs/{hf_username}.pdf
|
213 |
"""
|
214 |
else:
|
215 |
# Not passed yet
|
|
|
245 |
|
246 |
For more information about the certification process [check the hackathon page on certification](https://pseudo-lab.github.io/huggingface-hackathon23/submit.html#certification).
|
247 |
|
248 |
+
Don't hesitate to share your certificate on Twitter (tag me [@wonhseo](https://twitter.com/wonhseo), [@pseudolab](https://twitter.com/pseudo-lab), and [@huggingface](https://twitter.com/huggingface)) and on LinkedIn.
|
249 |
""")
|
250 |
|
251 |
hf_username = gr.Textbox(placeholder="wseo", label="Your Hugging Face Username (case sensitive)")
|