aimlnerd's picture
update config
f7558d2
raw
history blame
354 Bytes
from functools import lru_cache
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
SERVER_HOST: str = '0.0.0.0'
PORT: int = 7860
MODEL_CHECKPOINT: str = "aimlnerd/bert-finetuned-legalentity-ner-accelerate"
@lru_cache()
def get_settings():
return Settings()
# Instantiate the settings
settings = get_settings()