Spaces:
Sleeping
Sleeping
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| SARVAM_API_KEY: str | |
| # Google Fact Check API | |
| GOOGLE_FACTCHECK_API_KEY: str | |
| # Tavily API | |
| TAVILY_API_KEY: str | |
| # FastAPI Secret Key (optional) | |
| SECRET_KEY: str = "truthlens" | |
| # Debug Mode | |
| DEBUG: bool = False | |
| # Tell Pydantic where the .env file is | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| extra="ignore" | |
| ) | |
| # Create a global settings object | |
| settings = Settings() |