Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ def upload_certificate_to_hub(username: str, certificate_img) -> str:
|
|
| 128 |
|
| 129 |
# Clean up temp file
|
| 130 |
os.unlink(tmp.name)
|
| 131 |
-
|
| 132 |
return cert_url
|
| 133 |
except Exception as e:
|
| 134 |
print(f"Error uploading certificate: {e}")
|
|
@@ -162,7 +162,7 @@ def check_certification(
|
|
| 162 |
# Check certification criteria
|
| 163 |
gr.Info("Collecting data from your course progress...")
|
| 164 |
result = check_certification_criteria(username)
|
| 165 |
-
|
| 166 |
# Generate certificate if passed
|
| 167 |
if result.passed and result.certificate_path:
|
| 168 |
certificate_img, pdf_path = generate_certificate(
|
|
|
|
| 128 |
|
| 129 |
# Clean up temp file
|
| 130 |
os.unlink(tmp.name)
|
| 131 |
+
print(cert_url)
|
| 132 |
return cert_url
|
| 133 |
except Exception as e:
|
| 134 |
print(f"Error uploading certificate: {e}")
|
|
|
|
| 162 |
# Check certification criteria
|
| 163 |
gr.Info("Collecting data from your course progress...")
|
| 164 |
result = check_certification_criteria(username)
|
| 165 |
+
print(f"check certification res: {result}")
|
| 166 |
# Generate certificate if passed
|
| 167 |
if result.passed and result.certificate_path:
|
| 168 |
certificate_img, pdf_path = generate_certificate(
|