Skip to content

Commit f52d52e

Browse files
authored
Merge pull request #90 from justinlevi/patch-1
Update README.md
2 parents afe9eea + 71af04d commit f52d52e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ To have it up and running please execute the following steps:
5252
[Download and install Ollama](https://ollama.com/download)
5353
[Download and install Docker](https://www.docker.com/products/docker-desktop/)
5454

55+
5556
> ### Setting Up Ollama on a Remote Host
5657
>
5758
> To connect to an external Ollama instance, set the environment variable: `OLLAMA_HOST=http://address:port`, e.g.:
@@ -111,15 +112,25 @@ run.sh
111112
112113
This command will install all the dependencies - including Redis (via Docker, so it is not entirely docker free method of running `text-extract-api` anyways :)
113114
115+
(MAC) - Dependencies
116+
```
117+
brew update && brew install libmagic tesseract poppler pkg-config ghostscript ffmpeg automake autoconf
118+
```
119+
120+
(Mac) - You need to startup the celery worker
121+
```
122+
source .venv/bin/activate && celery -A text_extract_api.celery_app worker --loglevel=info --pool=solo
123+
```
124+
114125
Then you're good to go with running some CLI commands like:
115126
116127
```bash
117128
python client/cli.py ocr_upload --file examples/example-mri.pdf --ocr_cache --prompt_file=examples/example-mri-remove-pii.txt
118129
```
119130
120-
### Scalling the parallell processing
131+
### Scaling the parallell processing
121132
122-
To have multiple tasks runing at once - for concurrent processing please run the following command to start single worker process:
133+
To have multiple tasks running at once - for concurrent processing please run the following command to start single worker process:
123134
124135
```bash
125136
celery -A text_extract_api.tasks worker --loglevel=info --pool=solo & # to scale by concurrent processing please run this line as many times as many concurrent processess you want to have running

0 commit comments

Comments
 (0)