Improve Deep RL certification Space runtime pins and writeback errors
For an issue observed in this thread: /static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-generating-deep-rl-course-certificate%2F177241%3C%2Fa%3E%3C%2Fp%3E
This PR makes the Deep RL Course Certification Space easier to rebuild and improves the error message around the certificate writeback step. Changes: This PR intentionally does not return a certificate when the writeback step fails, because I duplicated the Space and tested the current code path with the affected username Observed: This PR cannot update or verify the official Space secret. Please check: I cannot prove the official Space fails at exactly the same line because I do not have access to the official Space logs or maintainer token, but the duplicated Space strongly points to the certificate writeback path rather than the user's progress/model metadata.
Summary
Pillow == 9.4.0 fails to build there.huggingface_hub<1 as a temporary compatibility fix because the Space imports the legacy Repository class.certified_users.csv may be intended as the official issuance record. It only makes the failure explicit instead of surfacing a generic Error.
Investigation notes
szymon-hyziak.
huggingface_hub<1, and a valid HF_TOKEN, the UI starts.pass_percentage ~= 81.8, which should qualify for a completion certificate.huggingface-projects/Deep-RL-Course-Certification, which my token understandably cannot write to.
Maintainer-side follow-up required
HF_TOKEN secret is still valid;huggingface-projects/Deep-RL-Course-Certification;repo.push_to_hub(...);