Spaces:
Runtime error
Runtime error
Download config.py from berohan/studyson: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/berohan/studyson/resolve/main/config.py
- Command line
-
hf download hf://spaces/berohan/studyson/config.py
-
curl -L -o config.py https://huggingface.co/spaces/berohan/studyson/resolve/main/config.py
483 Bytes
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from pathlib import Path | |
| class Settings(BaseSettings): | |
| groq_api_key: str | |
| host: str = "0.0.0.0" | |
| port: int = 7860 # HuggingFace Spaces default port | |
| upload_dir: Path = Path("uploads") | |
| max_file_size: int = 10 * 1024 * 1024 | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| case_sensitive=False | |
| ) | |
| settings = Settings() | |