Download scripts/utils/debug_login.py from techprotrade/annator-full-system: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/debug_login.py
- Command line
-
hf download hf://spaces/techprotrade/annator-full-system/scripts/utils/debug_login.py
-
curl -L -o debug_login.py https://huggingface.co/spaces/techprotrade/annator-full-system/resolve/main/scripts/utils/debug_login.py
446 Bytes
| import requests | |
| url = "http://localhost:5059/api/auth/login" | |
| payload = { | |
| "username": "admin@example.com", | |
| "password": "securePass123" | |
| } | |
| headers = { | |
| "Content-Type": "application/x-www-form-urlencoded" | |
| } | |
| try: | |
| response = requests.post(url, data=payload, headers=headers) | |
| print(f"Status Code: {response.status_code}") | |
| print("Response Body:") | |
| print(response.text) | |
| except Exception as e: | |
| print(f"Request failed: {e}") | |