Spaces:
Sleeping
Sleeping
title: Everycure Ner Pdf | |
emoji: 🐢 | |
colorFrom: indigo | |
colorTo: purple | |
sdk: docker | |
pinned: false | |
## local dev | |
install dependencies: | |
```sh | |
uv venv | |
UV_PYTHON=3.12 uv pip install -r pyproject.toml | |
``` | |
```sh | |
uv run src/everycure/app.py | |
``` | |
if your pdfs are in a folder called `pdfs/` run: | |
``` | |
curl -v -X POST -F "file=@pdfs/MECFS systematic review.pdf" http://localhost:8000/api/v1/extract | |
``` | |
to test remote (unfortunately quite slow): | |
``` | |
curl -X POST -F "file=@pdfs/MECFS systematic review.pdf" https://lucharo-everycure-ner-pdf.hf.space/api/v1/extract | |
``` | |
check API docs at <https://lucharo-everycure-ner-pdf.hf.space/docs> | |
### run tests | |
```sh | |
uv pip install -e .[dev] | |
uv run pytest | |
``` | |