Spaces:
Running on Zero
Running on Zero
Download src/global_cfg.py from hugging-apps/codecsplat: direct link, hf CLI and curl.
- Browser
- Download file 234 Bytes
-
https://huggingface.co/spaces/hugging-apps/codecsplat/resolve/main/src/global_cfg.py
- Command line
-
hf download hf://spaces/hugging-apps/codecsplat/src/global_cfg.py
-
curl -L -o global_cfg.py https://huggingface.co/spaces/hugging-apps/codecsplat/resolve/main/src/global_cfg.py
234 Bytes
| from typing import Optional | |
| from omegaconf import DictConfig | |
| cfg: Optional[DictConfig] = None | |
| def get_cfg() -> DictConfig: | |
| global cfg | |
| return cfg | |
| def set_cfg(new_cfg: DictConfig) -> None: | |
| global cfg | |
| cfg = new_cfg | |