Spaces:
Configuration error
Configuration error
Download utils.py from Yankkee/ControlNet-v1-1: direct link, hf CLI and curl.
- Browser
- Download file 206 Bytes
-
https://huggingface.co/spaces/Yankkee/ControlNet-v1-1/resolve/main/utils.py
- Command line
-
hf download hf://spaces/Yankkee/ControlNet-v1-1/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/Yankkee/ControlNet-v1-1/resolve/main/utils.py
206 Bytes
| import random | |
| from settings import MAX_SEED | |
| def randomize_seed_fn(seed: int, randomize_seed: bool) -> int: | |
| if randomize_seed: | |
| seed = random.randint(0, MAX_SEED) # noqa: S311 | |
| return seed | |