Spaces:
No application file
No application file
| from pydantic_settings import BaseSettings | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # API Settings | |
| API_HOST: str = "0.0.0.0" | |
| API_PORT: int = 8000 | |
| # Model Settings | |
| MODEL_NAME: str = "all-MiniLM-L6-v2" | |
| MODEL_PATH: str = "../models/product_embeddings.pkl" | |
| # HuggingFace Settings | |
| HUGGINGFACE_API_TOKEN: str | |
| HUGGINGFACE_USERNAME: Optional[str] = None | |
| # BigQuery Settings | |
| BIGQUERY_PROJECT_ID: str | |
| BIGQUERY_DATASET: str | |
| BIGQUERY_TABLE: str | |
| GOOGLE_APPLICATION_CREDENTIALS: str | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() |