mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
Update OCR configuration in docker-compose.yml and add ocr_config.yaml
- Modified the OCR service command in `docker-compose.yml` to reference the new configuration file `ocr_config.yaml`. - Introduced `ocr_config.yaml` to specify the Russian language for the OCR pipeline. - These changes streamline the OCR service setup and enhance language support.
This commit is contained in:
@@ -758,12 +758,12 @@ services:
|
||||
python -m pip install --upgrade pip; \
|
||||
python -m pip install --no-cache-dir 'paddlex[ocr]'; \
|
||||
python -m paddlex --install serving; \
|
||||
exec python -m paddlex --serve --pipeline OCR --device cpu --port 8080 --hpi_config '/app/ocr_hpi.yaml'"
|
||||
exec python -m paddlex --serve --pipeline /app/ocr_config.yaml --device cpu --port 8080"
|
||||
volumes:
|
||||
- paddleocr_cache:/root/.paddleocr
|
||||
- paddle_cache:/root/.cache/paddle
|
||||
- paddlex_data:/root/.paddlex
|
||||
- ./paddlex/ocr_hpi.yaml:/app/ocr_hpi.yaml:ro
|
||||
- ./paddlex/ocr_config.yaml:/app/ocr_config.yaml:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://localhost:8080 > /dev/null || exit 1"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user