Spaces:
No application file
No application file
File size: 629 Bytes
480e694 |
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 26 |
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() |