Spaces:
Runtime error
Runtime error
File size: 354 Bytes
1d6faef f7558d2 1d6faef f7558d2 1d6faef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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()
|