Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,8 +72,8 @@ def handle_certificate(name, profile: gr.OAuthProfile):
|
|
| 72 |
if not has_certificate_entry(username):
|
| 73 |
add_certificate_entry(username, name)
|
| 74 |
|
| 75 |
-
|
| 76 |
-
return "Congratulations! Here's your certificate:",
|
| 77 |
|
| 78 |
# Gradio interface
|
| 79 |
with gr.Blocks() as demo:
|
|
|
|
| 72 |
if not has_certificate_entry(username):
|
| 73 |
add_certificate_entry(username, name)
|
| 74 |
|
| 75 |
+
certificate_image, certificate_pdf = generate_certificate(name, score)
|
| 76 |
+
return "Congratulations! Here's your certificate:", certificate_image, certificate_pdf
|
| 77 |
|
| 78 |
# Gradio interface
|
| 79 |
with gr.Blocks() as demo:
|