Download api_utils/common_utils.py from dakl45646/sd: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/dakl45646/sd/resolve/main/api_utils/common_utils.py
- Command line
-
hf download hf://spaces/dakl45646/sd/api_utils/common_utils.py
-
curl -L -o common_utils.py https://huggingface.co/spaces/dakl45646/sd/resolve/main/api_utils/common_utils.py
175 Bytes
| import random | |
| def random_id(length: int = 24) -> str: | |
| charset = "abcdefghijklmnopqrstuvwxyz0123456789" | |
| return ''.join(random.choice(charset) for _ in range(length)) | |