Download utils.py from cubuvl/Ai_Video: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/spaces/cubuvl/Ai_Video/resolve/main/utils.py
- Command line
-
hf download hf://spaces/cubuvl/Ai_Video/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/cubuvl/Ai_Video/resolve/main/utils.py
301 Bytes
| def format_bash_command(tokens): | |
| formatted_command = [] | |
| indent = " " * 4 | |
| for token in tokens: | |
| if token.startswith("-"): | |
| formatted_command.append("\n" + indent + token) | |
| else: | |
| formatted_command.append(" " + token) | |
| return "".join(formatted_command) |