Commit
•
a4a7f09
1
Parent(s):
9dfdf0f
Update app.py
Browse files
app.py
CHANGED
@@ -281,10 +281,10 @@ def verify_certification(df, hf_username, first_name, last_name):
|
|
281 |
|
282 |
if pass_percentage == 100:
|
283 |
# Generate a certificate of excellence
|
284 |
-
generate_certificate("./certificate_models/certificate-excellence.png",
|
285 |
|
286 |
# Add this user to our database
|
287 |
-
add_certified_user(hf_username,
|
288 |
|
289 |
# Output everything in gradio
|
290 |
|
@@ -311,6 +311,7 @@ def generate_certificate(certificate_model, first_name, last_name):
|
|
311 |
date_font = ImageFont.truetype("Quattrocento-Regular.ttf", 48)
|
312 |
|
313 |
name = str(first_name) + " " + str(last_name)
|
|
|
314 |
|
315 |
# Debug line name
|
316 |
#d.line(((200, 740), (1800, 740)), "gray")
|
|
|
281 |
|
282 |
if pass_percentage == 100:
|
283 |
# Generate a certificate of excellence
|
284 |
+
generate_certificate("./certificate_models/certificate-excellence.png", first_name, last_name)
|
285 |
|
286 |
# Add this user to our database
|
287 |
+
add_certified_user(hf_username, first_name, last_name, pass_percentage)
|
288 |
|
289 |
# Output everything in gradio
|
290 |
|
|
|
311 |
date_font = ImageFont.truetype("Quattrocento-Regular.ttf", 48)
|
312 |
|
313 |
name = str(first_name) + " " + str(last_name)
|
314 |
+
print("NAME", name)
|
315 |
|
316 |
# Debug line name
|
317 |
#d.line(((200, 740), (1800, 740)), "gray")
|