Luis Chaves commited on
Commit
8fe90da
·
1 Parent(s): ca919d4

updated README

Browse files
Files changed (1) hide show
  1. README.md +22 -17
README.md CHANGED
@@ -1,40 +1,45 @@
1
- ---
2
- title: Everycure Ner Pdf
3
- emoji: 🐢
4
- colorFrom: indigo
5
- colorTo: purple
6
- sdk: docker
7
- pinned: false
8
- ---
9
 
10
- ## local dev
11
 
12
- install dependencies:
 
 
13
 
14
  ```sh
15
  uv venv
16
  UV_PYTHON=3.12 uv pip install -r pyproject.toml
17
  ```
18
 
 
 
 
 
19
  ```sh
20
  uv run src/everycure/app.py
21
  ```
22
 
23
- if your pdfs are in a folder called `pdfs/` run:
24
 
25
- ```
26
- curl -v -X POST -F "file=@pdfs/MECFS systematic review.pdf" http://localhost:8000/api/v1/extract
 
 
27
  ```
28
 
29
- to test remote (unfortunately quite slow):
30
 
31
- ```
 
 
32
  curl -X POST -F "file=@pdfs/MECFS systematic review.pdf" https://lucharo-everycure-ner-pdf.hf.space/api/v1/extract
33
  ```
34
 
35
- check API docs at <https://lucharo-everycure-ner-pdf.hf.space/docs>
 
 
36
 
37
- ### run tests
38
 
39
  ```sh
40
  uv pip install -e .[dev]
 
1
+ # Everycure NER PDF
 
 
 
 
 
 
 
2
 
3
+ Extract named entities from PDF documents.
4
 
5
+ ## Quick Start
6
+
7
+ ### Installation
8
 
9
  ```sh
10
  uv venv
11
  UV_PYTHON=3.12 uv pip install -r pyproject.toml
12
  ```
13
 
14
+ ### Running Locally
15
+
16
+ Start the server:
17
+
18
  ```sh
19
  uv run src/everycure/app.py
20
  ```
21
 
22
+ ### Usage
23
 
24
+ Process a PDF file (assuming your PDFs are in a `pdfs/` folder):
25
+
26
+ ```sh
27
+ curl -X POST -F "file=@pdfs/MECFS systematic review.pdf" http://localhost:8000/api/v1/extract
28
  ```
29
 
30
+ ### Remote API
31
 
32
+ The service is also available remotely:
33
+
34
+ ```sh
35
  curl -X POST -F "file=@pdfs/MECFS systematic review.pdf" https://lucharo-everycure-ner-pdf.hf.space/api/v1/extract
36
  ```
37
 
38
+ API documentation: <https://lucharo-everycure-ner-pdf.hf.space/docs>
39
+
40
+ ## Development
41
 
42
+ Run tests:
43
 
44
  ```sh
45
  uv pip install -e .[dev]