Commit
·
c86d5c1
1
Parent(s):
22d8e29
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,9 +254,9 @@ def certification(hf_username, first_name, last_name):
|
|
| 254 |
|
| 255 |
df = df1[['passed', 'unit', 'env', 'min_result', 'best_result', 'best_model_id']]
|
| 256 |
|
| 257 |
-
|
| 258 |
print("MESSAGE", message)
|
| 259 |
-
return message, df,
|
| 260 |
|
| 261 |
"""
|
| 262 |
Verify that the user pass.
|
|
@@ -309,6 +309,7 @@ def verify_certification(df, hf_username, first_name, last_name):
|
|
| 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.
|
|
|
|
| 254 |
|
| 255 |
df = df1[['passed', 'unit', 'env', 'min_result', 'best_result', 'best_model_id']]
|
| 256 |
|
| 257 |
+
certificate, message = verify_certification(results_certification, hf_username, first_name, last_name)
|
| 258 |
print("MESSAGE", message)
|
| 259 |
+
return message, df, certificate
|
| 260 |
|
| 261 |
"""
|
| 262 |
Verify that the user pass.
|
|
|
|
| 309 |
else:
|
| 310 |
# Not pass yet
|
| 311 |
certificate = ""
|
| 312 |
+
|
| 313 |
# Add a message
|
| 314 |
message = """
|
| 315 |
You didn't pass the minimum of 80% of the hands-on to get a certificate of completion. But don't be discouraged.
|