Spaces:
Runtime error
Runtime error
File size: 584 Bytes
7b3f35e 4995bb4 9cb712d 44c6641 4995bb4 7b3f35e 4995bb4 7b3f35e 9cb712d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from pathlib import Path
from pydantic_settings import BaseSettings, SettingsConfigDict
BASE_DIR = Path(__file__).resolve().parent.parent.parent
class Settings(BaseSettings):
PROJECT_NAME: str = "Email Assistant Project"
GROQ_API_KEY: str
DB_URL_FOR_CHECKPOINTER_STORE: str
GMAIL_CREDENTIALS_PATH: str = "credentials.json"
GMAIL_TOKEN_PATH: str = "token.json"
DB_URL_FOR_SQL_AL:str
model_config = SettingsConfigDict(
env_file=str(BASE_DIR / ".env"),
env_file_encoding="utf-8",
extra="ignore"
)
settings = Settings()
|