Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,7 +171,7 @@ async def upload_certificate_to_hub(username: str, certificate_img) -> str:
|
|
| 171 |
|
| 172 |
# Construct the URL to the image
|
| 173 |
cert_url = (
|
| 174 |
-
f"https://huggingface.co/datasets/{CERTIFICATE_DATASET_REPO_ID/"
|
| 175 |
f"resolve/main/certificates/{username}/{date.today()}.png"
|
| 176 |
)
|
| 177 |
|
|
@@ -231,7 +231,7 @@ async def push_results_to_hub(
|
|
| 231 |
|
| 232 |
if cert_url is None:
|
| 233 |
gr.Warning("Certificate upload failed, but you still passed!")
|
| 234 |
-
cert_url = "https://huggingface.co/
|
| 235 |
|
| 236 |
# Create LinkedIn button
|
| 237 |
linkedin_button = create_linkedin_button(profile.username, cert_url)
|
|
|
|
| 171 |
|
| 172 |
# Construct the URL to the image
|
| 173 |
cert_url = (
|
| 174 |
+
f"https://huggingface.co/datasets/{CERTIFICATE_DATASET_REPO_ID}/"
|
| 175 |
f"resolve/main/certificates/{username}/{date.today()}.png"
|
| 176 |
)
|
| 177 |
|
|
|
|
| 231 |
|
| 232 |
if cert_url is None:
|
| 233 |
gr.Warning("Certificate upload failed, but you still passed!")
|
| 234 |
+
cert_url = "https://huggingface.co/smol-course"
|
| 235 |
|
| 236 |
# Create LinkedIn button
|
| 237 |
linkedin_button = create_linkedin_button(profile.username, cert_url)
|