Spaces:
Sleeping
Sleeping
Download src/env.py from jasonmdong/notepilot: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/spaces/jasonmdong/notepilot/resolve/main/src/env.py
- Command line
-
hf download hf://spaces/jasonmdong/notepilot/src/env.py
-
curl -L -o env.py https://huggingface.co/spaces/jasonmdong/notepilot/resolve/main/src/env.py
177 Bytes
| from pathlib import Path | |
| from dotenv import load_dotenv | |
| def load_local_env(): | |
| root = Path(__file__).resolve().parent.parent | |
| load_dotenv(root / ".env", override=False) | |