murshid / murshid_backend /app /config.py
devorbit's picture
Initial deployment - secrets removed
26e1c2e
raw
history blame contribute delete
913 Bytes
from pathlib import Path
from pydantic_settings import BaseSettings, SettingsConfigDict
_GP_ROOT = Path(__file__).resolve().parent.parent.parent
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="ignore",
)
murshid_db_url: str = "mysql+pymysql://root:password@localhost:3306/murshid_db"
murshid_models_dir: Path = _GP_ROOT / "Needed"
hf_token: str | None = None
murshid_skip_llm: bool = False
secret_key: str = "change_me"
llama_model_id: str = "meta-llama/Meta-Llama-3-8B-Instruct"
embed_model_id: str = "ehsanaghaei/SecureBERT_Plus"
logreg_joblib: str = "murshid_logreg_pipeline_manual_oof_pcatuned.joblib"
logreg_thresholds_npy: str = "murshid_logreg_thresholds_manual_oof_pcatuned.npy"
label_columns_json: str = "murshid_label_columns.json"
settings = Settings()