ThomasSimonini HF staff commited on
Commit
156c338
β€’
1 Parent(s): 3fc76ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
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 = "Congratulations, you successfully completed the Hugging Face Deep Reinforcement Learning Course πŸŽ‰ \n Since you pass 100% of the hands-on you get a Certificate of Excellence πŸŽ“."
 
 
 
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 = "Congratulations, you successfully completed the Hugging Face Deep Reinforcement Learning Course πŸŽ‰ \n Since you pass 80% of the hands-on you get a Certificate of Completion πŸŽ“. You can try to get a Certificate of Excellence if you pass 100% of the hands-on, don't hesitate to check which unit you didn't pass and update these models."
 
 
 
 
301
 
302
  else:
303
  # Not pass yet
304
  certificate = ""
305
  # Add a message
306
- message = "You didn't pass the minimum of 80% of the hands-on to get a certificate of completion. But don't be discouraged. Check below which units you need to do again to get your certificate πŸ’ͺ"
 
 
 
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