Download utils.py from huph22/Deep-Reinforcement-Learning-Leaderboard: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/huph22/Deep-Reinforcement-Learning-Leaderboard/resolve/main/utils.py
- Command line
-
hf download hf://spaces/huph22/Deep-Reinforcement-Learning-Leaderboard/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/huph22/Deep-Reinforcement-Learning-Leaderboard/resolve/main/utils.py
485 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>' | |
| # Make user clickable link | |
| def make_clickable_user(user_id): | |
| link = "https://huggingface.co/" + user_id | |
| return f'<a target="_blank" href="{link}">{user_id}</a>' | |