Spaces:
Runtime error
Runtime error
Download utils/utility.py from YuAnthony/Voice-Recognition: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/YuAnthony/Voice-Recognition/resolve/main/utils/utility.py
- Command line
-
hf download hf://spaces/YuAnthony/Voice-Recognition/utils/utility.py
-
curl -L -o utility.py https://huggingface.co/spaces/YuAnthony/Voice-Recognition/resolve/main/utils/utility.py
624 Bytes
| import distutils.util | |
| def print_arguments(args): | |
| print("----------- Configuration Arguments -----------") | |
| for arg, value in sorted(vars(args).items()): | |
| print("%s: %s" % (arg, value)) | |
| print("------------------------------------------------") | |
| def add_arguments(argname, type, default, help, argparser, **kwargs): | |
| type = distutils.util.strtobool if type == bool else type | |
| argparser.add_argument("--" + argname, | |
| default=default, | |
| type=type, | |
| help=help + ' 默认: %(default)s.', | |
| **kwargs) | |