Spaces:
Sleeping
Sleeping
Download app/core/document_validator.py from PopovDanil/backend: direct link, hf CLI and curl.
- Browser
- Download file 141 Bytes
-
https://huggingface.co/spaces/PopovDanil/backend/resolve/main/app/core/document_validator.py
- Command line
-
hf download hf://spaces/PopovDanil/backend/app/core/document_validator.py
-
curl -L -o document_validator.py https://huggingface.co/spaces/PopovDanil/backend/resolve/main/app/core/document_validator.py
141 Bytes
| import os | |
| """ | |
| Checks if the given path is valid and file exists | |
| """ | |
| def path_is_valid(path: str) -> bool: | |
| return os.path.exists(path) | |