Spaces:
Running
Running
Download modules/utils/cli_manager.py from soiz1/Whisper-WebUI: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/soiz1/Whisper-WebUI/resolve/main/modules/utils/cli_manager.py
- Command line
-
hf download hf://spaces/soiz1/Whisper-WebUI/modules/utils/cli_manager.py
-
curl -L -o cli_manager.py https://huggingface.co/spaces/soiz1/Whisper-WebUI/resolve/main/modules/utils/cli_manager.py
315 Bytes
| import argparse | |
| def str2bool(v): | |
| if isinstance(v, bool): | |
| return v | |
| if v.lower() in ('yes', 'true', 't', 'y', '1'): | |
| return True | |
| elif v.lower() in ('no', 'false', 'f', 'n', '0'): | |
| return False | |
| else: | |
| raise argparse.ArgumentTypeError('Boolean value expected.') |