Spaces:
Runtime error
Runtime error
Download tests/check_env.py from Darshankumarr03/Swift-Query: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/check_env.py
- Command line
-
hf download hf://spaces/Darshankumarr03/Swift-Query/tests/check_env.py
-
curl -L -o check_env.py https://huggingface.co/spaces/Darshankumarr03/Swift-Query/resolve/main/tests/check_env.py
312 Bytes
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| uri = os.environ.get("MONGO_URI") | |
| if uri: | |
| if "<db_password>" in uri: | |
| print("ERROR: Placeholder <db_password> found in MONGO_URI.") | |
| else: | |
| print(f"MONGO_URI found: {uri[:15]}...{uri[-10:]}") | |
| else: | |
| print("MONGO_URI NOT found.") | |