Download test_connection.py from DeMaking/decision-helper-bot: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/spaces/DeMaking/decision-helper-bot/resolve/f83b63817d90dcafe111f72cea7e8c4e2fe71f2e/test_connection.py
- Command line
-
hf download hf://spaces/DeMaking/decision-helper-bot@f83b63817d90dcafe111f72cea7e8c4e2fe71f2e/test_connection.py
-
curl -L -o test_connection.py https://huggingface.co/spaces/DeMaking/decision-helper-bot/resolve/f83b63817d90dcafe111f72cea7e8c4e2fe71f2e/test_connection.py
176 Bytes
| import requests | |
| try: | |
| response = requests.get("https://api.telegram.org") | |
| print(f"Status Code: {response.status_code}") | |
| except Exception as e: | |
| print(f"Error: {e}") | |