Spaces:
Paused
Paused
Download python/helpers/guids.py from OnyxMunk/GravityFalls: direct link, hf CLI and curl.
- Browser
- Download file 147 Bytes
-
https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/main/python/helpers/guids.py
- Command line
-
hf download hf://spaces/OnyxMunk/GravityFalls/python/helpers/guids.py
-
curl -L -o guids.py https://huggingface.co/spaces/OnyxMunk/GravityFalls/resolve/main/python/helpers/guids.py
147 Bytes
| import random, string | |
| def generate_id(length: int = 8) -> str: | |
| return "".join(random.choices(string.ascii_letters + string.digits, k=length)) | |