Spaces:
Runtime error
Runtime error
Download config.py from Anant0712/StockGuard: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/spaces/Anant0712/StockGuard/resolve/main/config.py
- Command line
-
hf download hf://spaces/Anant0712/StockGuard/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Anant0712/StockGuard/resolve/main/config.py
592 Bytes
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| class Config: | |
| DEBUG = os.getenv('DEBUG', 'True') == 'True' | |
| PORT = int(os.getenv('PORT', 5000)) | |
| # Database configuration | |
| DB_HOST = os.getenv('DB_HOST', 'localhost') | |
| DB_USER = os.getenv('DB_USER', 'stockguard') | |
| DB_PASSWORD = os.getenv('DB_PASSWORD', 'password') | |
| DB_NAME = os.getenv('DB_NAME', 'stockguard_db') | |
| # API Keys | |
| ALPHA_VANTAGE_API_KEY = os.getenv('ALPHA_VANTAGE_API_KEY') | |
| NEWS_API_KEY = os.getenv('NEWS_API_KEY') | |
| # Other settings | |
| CACHE_TIMEOUT = 60 * 5 # 5 minutes | |