Spaces:
Sleeping
Sleeping
Download test_env.py from Suraj44/crowdroute: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/spaces/Suraj44/crowdroute/resolve/main/test_env.py
- Command line
-
hf download hf://spaces/Suraj44/crowdroute/test_env.py
-
curl -L -o test_env.py https://huggingface.co/spaces/Suraj44/crowdroute/resolve/main/test_env.py
196 Bytes
| from dotenv import load_dotenv | |
| import os | |
| load_dotenv() | |
| key = os.getenv('OPENWEATHER_API_KEY') | |
| if key: | |
| print('Key found: ' + key[:6] + '...') | |
| else: | |
| print('Key is None - .env not loading') |