Spaces:
Runtime error
Runtime error
File size: 669 Bytes
7b3f35e 4995bb4 9cb712d 44c6641 33ffec6 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 26 27 28 29 30 | 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"
SECRET_KEY: str
ALGORITHM: str
ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440
DB_URL_FOR_SQL_AL:str
model_config = SettingsConfigDict(
env_file=str(BASE_DIR / ".env"),
env_file_encoding="utf-8",
extra="ignore"
)
settings = Settings()
|