Spaces:
Paused
Paused
Download get_token.py from YOSOYYONOSOYOTRO/crowdata: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/spaces/YOSOYYONOSOYOTRO/crowdata/resolve/main/get_token.py
- Command line
-
hf download hf://spaces/YOSOYYONOSOYOTRO/crowdata/get_token.py
-
curl -L -o get_token.py https://huggingface.co/spaces/YOSOYYONOSOYOTRO/crowdata/resolve/main/get_token.py
193 Bytes
| import httpx | |
| import sys | |
| resp = httpx.post('http://localhost:8000/api/auth/jwt/login', data={'username': 'crowsistemas@proton.me', 'password': 'admin123456'}) | |
| print(resp.json()['access_token']) |