Spaces:
Paused
Paused
Download src/utils/config.py from mattoofahad/simple-chat-bot: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/mattoofahad/simple-chat-bot/resolve/main/src/utils/config.py
- Command line
-
hf download hf://spaces/mattoofahad/simple-chat-bot/src/utils/config.py
-
curl -L -o config.py https://huggingface.co/spaces/mattoofahad/simple-chat-bot/resolve/main/src/utils/config.py
344 Bytes
| """Module doc string""" | |
| import os | |
| from dotenv import find_dotenv, load_dotenv | |
| load_dotenv(find_dotenv(), override=True) | |
| LOGGER_LEVEL = os.getenv("LOGGER_LEVEL", "INFO") | |
| DISCORD_HOOK = os.getenv("DISCORD_HOOK", "NO_HOOK") | |
| ENVIRONMENT = os.getenv("ENVIRONMENT", "NOT_LOCAL") | |
| OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", "NO_KEY") | |