Spaces:
Sleeping
Sleeping
File size: 695 Bytes
1f3b631 8b5d6c8 e9f4d43 e568e66 e9f4d43 71b2d9b e568e66 8b5d6c8 1f3b631 71b2d9b 1f3b631 71b2d9b | 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 typing import Dict, Any, List
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
model_config = {
'protected_namespaces': (),
'env_prefix': "SEMANTIX_"
}
# ML API settings
app_name: str = "Semantix ML API"
version: str = "1.0.0"
debug: bool = False
model_url: str = "https://huggingface.co/Miroir/cc.fr.300.reduced/resolve/main/cc.fr.300.reduced.vec"
# ML model constants
similarity_threshold: float = 0.99
default_similar_words_count: int = 20
cache_size: int = 1000
# Create settings instance
settings = Settings()
# ML-related constants
DEFAULT_SIMILARITY_THRESHOLD = 0.99 |