Spaces:
Runtime error
Runtime error
Download app/document_validator.py from The-Ultimate-RAG-HF/test: direct link, hf CLI and curl.
- Browser
- Download file 138 Bytes
-
https://huggingface.co/spaces/The-Ultimate-RAG-HF/test/resolve/main/app/document_validator.py
- Command line
-
hf download hf://spaces/The-Ultimate-RAG-HF/test/app/document_validator.py
-
curl -L -o document_validator.py https://huggingface.co/spaces/The-Ultimate-RAG-HF/test/resolve/main/app/document_validator.py
138 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) |