Spaces:
Sleeping
Sleeping
Download app/config.py from HFShishir/tech-updates: direct link, hf CLI and curl.
- Browser
- Download file 972 Bytes
-
https://huggingface.co/spaces/HFShishir/tech-updates/resolve/main/app/config.py
- Command line
-
hf download hf://spaces/HFShishir/tech-updates/app/config.py
-
curl -L -o config.py https://huggingface.co/spaces/HFShishir/tech-updates/resolve/main/app/config.py
972 Bytes
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| APP_NAME: str = "BytePulse AI - Daily Tech Briefing" | |
| VERSION: str = "1.0.0" | |
| DEBUG: bool = True | |
| # Environment Secrets (Must be set in Hugging Face Space Settings or .env) | |
| API_SECRET_KEY: str = "bytepulse_secure_app_key_2026" | |
| ENCRYPTION_KEY: Optional[str] = None | |
| HOST: str = "0.0.0.0" | |
| PORT: int = 8000 | |
| DATABASE_URL: str = "sqlite:///./tech_updates.db" | |
| CHROMA_PERSIST_DIRECTORY: str = "./chroma_db" | |
| GOOGLE_API_KEY: Optional[str] = None | |
| OPENAI_API_KEY: Optional[str] = None | |
| PREFERRED_LLM_PROVIDER: str = "gemini" | |
| FIREBASE_CREDENTIALS_FILE: Optional[str] = "./firebase-credentials.json" | |
| DAILY_CRON_HOUR: int = 8 | |
| DAILY_CRON_MINUTE: int = 0 | |
| model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore") | |
| settings = Settings() | |