Download model.py from AGofficial/Agent-3Web: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/AGofficial/Agent-3Web/resolve/main/model.py
- Command line
-
hf download hf://AGofficial/Agent-3Web/model.py
-
curl -L -o model.py https://huggingface.co/AGofficial/Agent-3Web/resolve/main/model.py
329 Bytes
| import requests | |
| def ask(prompt: str) -> str: | |
| url = "http://text.pollinations.ai/" | |
| fullurl = url + prompt.replace(" ", "%20") | |
| response = requests.get(fullurl) | |
| return response.text | |
| if __name__ == "__main__": | |
| prompt = "What is the capital of France?" | |
| response = ask(prompt) | |
| print("Response:", response) |