Spaces:
Sleeping
Sleeping
| from pathlib import Path | |
| from dotenv import load_dotenv | |
| import os | |
| load_dotenv(Path(__file__).parent.parent / ".env") | |
| class Settings: | |
| MODEL_ID: str = os.getenv("MODEL_ID", "gouwsxander/slop-detector-bert") | |
| MAX_TOKENS: int = int(os.getenv("MAX_TOKENS", 500)) | |
| CONFIDENCE_THRESHOLD: float = 0.68 | |
| MIN_SENTENCE_LENGTH: int = 20 | |
| MAX_SENTENCES: int = 40 | |
| TEMPERATURE: float = 2.5 # β make sure this is 2.5 | |
| ENVIRONMENT: str = os.getenv("ENVIRONMENT", "development") | |
| ALLOWED_ORIGINS: list = [ | |
| "http://localhost:3000", | |
| "http://localhost:5500", | |
| "http://127.0.0.1:5500", | |
| "http://localhost:5501", | |
| "http://127.0.0.1:5501", | |
| "https://*.vercel.app", | |
| "https://*.hf.space", | |
| "https://huggingface.co", | |
| ] | |
| settings = Settings() |