Spaces:
Running
Running
| from pydantic_settings import BaseSettings | |
| from typing import Optional | |
| class Settings(BaseSettings): | |
| # MongoDB Atlas | |
| MONGODB_URI: str | |
| DATABASE_NAME: str = "marketplace" | |
| COLLECTION_NAME: str = "product" | |
| # Gemini API | |
| GEMINI_API_KEY: str | |
| # Server | |
| HOST: str = "0.0.0.0" | |
| PORT: int = 7860 | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() | |