Update app.py
Browse files
app.py
CHANGED
@@ -88,9 +88,21 @@ def handle_certificate(name, profile: gr.OAuthProfile):
|
|
88 |
add_certificate_entry(username, name, score)
|
89 |
return "Congratulations! Here's your certificate:", certificate_image, certificate_pdf
|
90 |
|
91 |
-
# Gradio interface
|
92 |
with gr.Blocks() as demo:
|
93 |
-
gr.Markdown("# π
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
gr.LoginButton()
|
95 |
with gr.Row():
|
96 |
name_input = gr.Text(label="Enter your name")
|
|
|
88 |
add_certificate_entry(username, name, score)
|
89 |
return "Congratulations! Here's your certificate:", certificate_image, certificate_pdf
|
90 |
|
91 |
+
# Gradio interface
|
92 |
with gr.Blocks() as demo:
|
93 |
+
gr.Markdown("# π Agents Course - Get Your Final Certificate")
|
94 |
+
gr.Markdown("Welcome! Follow the steps below to receive your official certificate:")
|
95 |
+
|
96 |
+
with gr.Group():
|
97 |
+
gr.Markdown("## β
How it works")
|
98 |
+
gr.Markdown("""
|
99 |
+
1. **Sign in** with your Hugging Face account using the button below.
|
100 |
+
2. **Enter your full name** (this will appear on the certificate).
|
101 |
+
3. Click **'Get My Certificate'** to check your score and download your certificate.
|
102 |
+
""")
|
103 |
+
gr.Markdown("---")
|
104 |
+
gr.Markdown("π **Note**: You must have completed <a href="http://hf.co/learn/agents-course/unit4/introduction">Unit 4</a> and your Agent must have scored **above 45** to get your certificate.")
|
105 |
+
|
106 |
gr.LoginButton()
|
107 |
with gr.Row():
|
108 |
name_input = gr.Text(label="Enter your name")
|