ThomasSimonini HF Staff commited on
Commit
570b457
·
verified ·
1 Parent(s): b2181a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- certificate = generate_certificate(name, score)
76
- return "Congratulations! Here's your certificate:", 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: