Download utils.py from huggingface-projects/Deep-RL-Course-Certification: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/huggingface-projects/Deep-RL-Course-Certification/resolve/eb93166e183f8d89b319c567e699efeacf6e2055/utils.py
- Command line
-
hf download hf://spaces/huggingface-projects/Deep-RL-Course-Certification@eb93166e183f8d89b319c567e699efeacf6e2055/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/huggingface-projects/Deep-RL-Course-Certification/resolve/eb93166e183f8d89b319c567e699efeacf6e2055/utils.py
460 Bytes
| # Based on Omar Sanseviero work | |
| # Make model clickable link | |
| def make_clickable_model(model_name): | |
| # remove user from model name | |
| model_name_show = ' '.join(model_name.split('/')[1:]) | |
| link = "https://huggingface.co/" + model_name | |
| return f'<a target="_blank" href="{link}">{model_name_show}</a>' | |
| def pass_emoji(passed): | |
| print("PASSED", passed) | |
| if passed is True: | |
| passed = "✅" | |
| else: | |
| passed = "❌" | |
| return passed | |