Spaces:
No application file
No application file
Download src/common/util.py from metasoccer/collab: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/common/util.py
- Command line
-
hf download hf://spaces/metasoccer/collab/src/common/util.py
-
curl -L -o util.py https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/common/util.py
219 Bytes
| # Function to get the first key different than 'Undefined' | |
| def get_first_valid_key(dictionary, invalid_key = 'Undefined'): | |
| for key in dictionary: | |
| if key != invalid_key: | |
| return key | |
| return None |