Spaces:
Runtime error
Runtime error
Download tests_template/utils.py from EmbeddedLLM/chat-template-generation: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/spaces/EmbeddedLLM/chat-template-generation/resolve/main/tests_template/utils.py
- Command line
-
hf download hf://spaces/EmbeddedLLM/chat-template-generation/tests_template/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/EmbeddedLLM/chat-template-generation/resolve/main/tests_template/utils.py
177 Bytes
| def sanitize_jinja2(jinja_lines): | |
| one_liner_jinja = "" | |
| for line in jinja_lines: | |
| one_liner_jinja += line.lstrip(" ").rstrip("\n") | |
| return one_liner_jinja |