Spaces:
Sleeping
Sleeping
Download tests/test_pdf_loader.py from thabsheeeeeer/DocBrain-API: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/thabsheeeeeer/DocBrain-API/resolve/main/tests/test_pdf_loader.py
- Command line
-
hf download hf://spaces/thabsheeeeeer/DocBrain-API/tests/test_pdf_loader.py
-
curl -L -o test_pdf_loader.py https://huggingface.co/spaces/thabsheeeeeer/DocBrain-API/resolve/main/tests/test_pdf_loader.py
226 Bytes
| from app.utils.pdf_loader import extract_text | |
| def test_extract_text_from_pdf(): | |
| text = extract_text("uploads/Local Creator Marketplace – Project Proposal.pdf") | |
| assert isinstance(text, str) | |
| assert len(text) > 0 |