Spaces:
Sleeping
Sleeping
Download src/core/config.py from exploreshree/jarvis-backend: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/exploreshree/jarvis-backend/resolve/main/src/core/config.py
- Command line
-
hf download hf://spaces/exploreshree/jarvis-backend/src/core/config.py
-
curl -L -o config.py https://huggingface.co/spaces/exploreshree/jarvis-backend/resolve/main/src/core/config.py
304 Bytes
| from pydantic_settings import BaseSettings | |
| class Settings(BaseSettings): | |
| MONGODB_URL: str | |
| DATABASE_NAME: str = "jarvis_db" | |
| SECRET_KEY: str = "secret" | |
| ALGORITHM: str = "HS256" | |
| ACCESS_TOKEN_EXPIRE_MINUTES: int = 1440 | |
| class Config: | |
| env_file = ".env" | |
| settings = Settings() | |