Download test_stackoverflow_tool.py from sedayzc/developer-asisstant-tool-call: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/sedayzc/developer-asisstant-tool-call/resolve/main/test_stackoverflow_tool.py
- Command line
-
hf download hf://spaces/sedayzc/developer-asisstant-tool-call/test_stackoverflow_tool.py
-
curl -L -o test_stackoverflow_tool.py https://huggingface.co/spaces/sedayzc/developer-asisstant-tool-call/resolve/main/test_stackoverflow_tool.py
407 Bytes
| import json | |
| from tools.stackoverflow_tool import ( | |
| search_stackoverflow, | |
| ) | |
| def main() -> None: | |
| result = search_stackoverflow( | |
| query=( | |
| "Python TypeError object is not subscriptable" | |
| ), | |
| limit=5, | |
| ) | |
| print( | |
| json.dumps( | |
| result, | |
| indent=2, | |
| ensure_ascii=False, | |
| ) | |
| ) | |
| if __name__ == "__main__": | |
| main() |