Download agentbench_scripts/check/string-match.py from Manojb/small-llm-tool-use-bench: direct link, hf CLI and curl.
- Browser
- Download file 181 Bytes
-
https://huggingface.co/Manojb/small-llm-tool-use-bench/resolve/main/agentbench_scripts/check/string-match.py
- Command line
-
hf download hf://Manojb/small-llm-tool-use-bench/agentbench_scripts/check/string-match.py
-
curl -L -o string-match.py https://huggingface.co/Manojb/small-llm-tool-use-bench/resolve/main/agentbench_scripts/check/string-match.py
181 Bytes
| from sys import argv | |
| def norm_newline(s): | |
| return s.replace("\r\n", "\n").replace("\r", "\n") | |
| if norm_newline(argv[1]).strip() == norm_newline(argv[2]).strip(): | |
| exit(0) | |
| exit(1) |