Spaces:
Runtime error
Runtime error
Download config.py from Echo9k/PDF_reader: direct link, hf CLI and curl.
- Browser
- Download file 184 Bytes
-
https://huggingface.co/spaces/Echo9k/PDF_reader/resolve/main/config.py
- Command line
-
hf download hf://spaces/Echo9k/PDF_reader/config.py
-
curl -L -o config.py https://huggingface.co/spaces/Echo9k/PDF_reader/resolve/main/config.py
184 Bytes
| # config.py | |
| import yaml | |
| def load_config(config_path="config.yaml"): | |
| with open(config_path, "r") as f: | |
| config = yaml.safe_load(f) | |
| return config | |
| config = load_config() | |