Commit
β’
156c338
1
Parent(s):
3fc76ef
Update app.py
Browse files
app.py
CHANGED
@@ -287,7 +287,10 @@ def verify_certification(df, hf_username, first_name, last_name):
|
|
287 |
add_certified_user(hf_username, first_name, last_name, pass_percentage)
|
288 |
|
289 |
# Add a message
|
290 |
-
message = "
|
|
|
|
|
|
|
291 |
|
292 |
elif pass_percentage < 100 and pass_percentage >= 80:
|
293 |
# Certificate of completion
|
@@ -297,13 +300,20 @@ def verify_certification(df, hf_username, first_name, last_name):
|
|
297 |
add_certified_user(hf_username, first_name, last_name, pass_percentage)
|
298 |
|
299 |
# Add a message
|
300 |
-
message = "
|
|
|
|
|
|
|
|
|
301 |
|
302 |
else:
|
303 |
# Not pass yet
|
304 |
certificate = ""
|
305 |
# Add a message
|
306 |
-
message = "
|
|
|
|
|
|
|
307 |
|
308 |
return certificate, message
|
309 |
|
|
|
287 |
add_certified_user(hf_username, first_name, last_name, pass_percentage)
|
288 |
|
289 |
# Add a message
|
290 |
+
message = """
|
291 |
+
Congratulations, you successfully completed the Hugging Face Deep Reinforcement Learning Course π \n
|
292 |
+
Since you pass 100% of the hands-on you get a Certificate of Excellence π.
|
293 |
+
"""
|
294 |
|
295 |
elif pass_percentage < 100 and pass_percentage >= 80:
|
296 |
# Certificate of completion
|
|
|
300 |
add_certified_user(hf_username, first_name, last_name, pass_percentage)
|
301 |
|
302 |
# Add a message
|
303 |
+
message = """
|
304 |
+
Congratulations, you successfully completed the Hugging Face Deep Reinforcement Learning Course π \n
|
305 |
+
Since you pass 80% of the hands-on you get a Certificate of Completion π. You can try to get a Certificate of Excellence
|
306 |
+
if you pass 100% of the hands-on, don't hesitate to check which unit you didn't pass and update these models.
|
307 |
+
"""
|
308 |
|
309 |
else:
|
310 |
# Not pass yet
|
311 |
certificate = ""
|
312 |
# Add a message
|
313 |
+
message = """
|
314 |
+
You didn't pass the minimum of 80% of the hands-on to get a certificate of completion. But don't be discouraged.
|
315 |
+
Check below which units you need to do again to get your certificate πͺ
|
316 |
+
"""
|
317 |
|
318 |
return certificate, message
|
319 |
|