Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -148,8 +148,7 @@ def create_certificate(passed, certificate_type, hf_username, first_name, last_n
|
|
148 |
# Add a message
|
149 |
message = """
|
150 |
You didn't pass the minimum of 3 out of 4 of the hands-on to get a certificate of completion.
|
151 |
-
For more information about the certification process
|
152 |
-
Use the <a href="https://huggingface.co/spaces/MariaK/Check-my-progress-Audio-Course">self-evaluation space</a> to see which assignments have not been completed.
|
153 |
If the results here differ from your results in the self-evaluation space, make sure that your model's metrics automatically uploaded by Trainer have not been manually altered.
|
154 |
"""
|
155 |
return certificate, message, pdf
|
@@ -175,12 +174,13 @@ with gr.Blocks() as demo:
|
|
175 |
- To get a *certificate of excellence*: you need to **pass 4 out of 4 hands-on assignments**.
|
176 |
|
177 |
For more information about the certification process [check the course page on certification](https://huggingface.co/learn/audio-course/chapter8/certification).
|
178 |
-
|
|
|
179 |
""")
|
180 |
|
181 |
hf_username = gr.Textbox(placeholder="MariaK", label="Your Hugging Face Username (case sensitive)")
|
182 |
-
first_name = gr.Textbox(placeholder="
|
183 |
-
last_name = gr.Textbox(placeholder="
|
184 |
|
185 |
check_progress_button = gr.Button(value="Check if I pass and get the certificate")
|
186 |
output_text = gr.components.Textbox()
|
|
|
148 |
# Add a message
|
149 |
message = """
|
150 |
You didn't pass the minimum of 3 out of 4 of the hands-on to get a certificate of completion.
|
151 |
+
For more information about the certification process, refer to Unit 8 of the course. To see what hands-on you still need to complete, use the self-evaluation space linked in the description above.
|
|
|
152 |
If the results here differ from your results in the self-evaluation space, make sure that your model's metrics automatically uploaded by Trainer have not been manually altered.
|
153 |
"""
|
154 |
return certificate, message, pdf
|
|
|
174 |
- To get a *certificate of excellence*: you need to **pass 4 out of 4 hands-on assignments**.
|
175 |
|
176 |
For more information about the certification process [check the course page on certification](https://huggingface.co/learn/audio-course/chapter8/certification).
|
177 |
+
To check which assignments you still need to complete, use the [self-evaluation space](https://huggingface.co/spaces/MariaK/Check-my-progress-Audio-Course).
|
178 |
+
Don't hesitate to share your certificate on Twitter (tag me [@mariakhalusova](https://twitter.com/mariaKhalusova) and [@huggingface](https://twitter.com/huggingface)) and on LinkedIn.
|
179 |
""")
|
180 |
|
181 |
hf_username = gr.Textbox(placeholder="MariaK", label="Your Hugging Face Username (case sensitive)")
|
182 |
+
first_name = gr.Textbox(placeholder="Maria", label="Your First Name")
|
183 |
+
last_name = gr.Textbox(placeholder="Khalusova", label="Your Last Name")
|
184 |
|
185 |
check_progress_button = gr.Button(value="Check if I pass and get the certificate")
|
186 |
output_text = gr.components.Textbox()
|