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:
Yury Kossakovsky
2025-08-29 16:44:57 -06:00
parent 455f67675e
commit 6354e1ae1f
2 changed files with 2 additions and 2 deletions

View File

@@ -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