Spaces:
Sleeping
Sleeping
Download community_contributions/claude_based_chatbot_tc/modules/config.py from uscemclean/cpu_basic: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/uscemclean/cpu_basic/resolve/main/community_contributions/claude_based_chatbot_tc/modules/config.py
- Command line
-
hf download hf://spaces/uscemclean/cpu_basic/community_contributions/claude_based_chatbot_tc/modules/config.py
-
curl -L -o config.py https://huggingface.co/spaces/uscemclean/cpu_basic/resolve/main/community_contributions/claude_based_chatbot_tc/modules/config.py
432 Bytes
| """ | |
| Configuration and environment setup for the chatbot | |
| """ | |
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables | |
| load_dotenv(override=True) | |
| # Configuration | |
| MODEL_NAME = "claude-3-7-sonnet-latest" | |
| MAX_TOKENS = 1000 | |
| RATE_LIMIT = 10 # messages per minute | |
| DEFAULT_NAME = "Taissa Conde" | |
| # Pushover configuration | |
| PUSHOVER_USER = os.getenv("PUSHOVER_USER") | |
| PUSHOVER_TOKEN = os.getenv("PUSHOVER_TOKEN") |