Spaces:
Runtime error
Runtime error
Download config.py from miyukicodes/d-commerce: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/miyukicodes/d-commerce/resolve/main/config.py
- Command line
-
hf download hf://spaces/miyukicodes/d-commerce/config.py
-
curl -L -o config.py https://huggingface.co/spaces/miyukicodes/d-commerce/resolve/main/config.py
407 Bytes
| 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() | |