Skip to content

Commit e64baee

Browse files
committed
Add Greek and Russian to OCR
1 parent 590edfe commit e64baee

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,22 @@ jobs:
2121
with:
2222
python-version: '3.11'
2323

24+
- name: Install just commander and uv
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y just python3-uv
28+
2429
- name: Install dependencies
25-
run: pip3 install -r dev-requirements.txt
30+
run: uv pip install -r dev-requirements.txt
2631

2732
- name: Lint with black
2833
run: black --line-length 125 . --check
2934

3035
- name: Free up space
31-
run: make free_up_space
36+
run: just free_up_space
3237

3338
- name: Start service
34-
run: make start_detached
39+
run: just start_detached
3540

3641
- name: Check API ready
3742
uses: emilioschepis/[email protected]

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM python:3.12-slim-bullseye
2+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
23

34
RUN apt-get update && apt-get install -y git
45

@@ -13,8 +14,8 @@ RUN python -m venv $VIRTUAL_ENV
1314
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
1415

1516
COPY requirements.txt requirements.txt
16-
RUN pip install --upgrade pip
17-
RUN pip install -r requirements.txt
17+
RUN uv pip install --upgrade pip
18+
RUN uv pip install -r requirements.txt
1819

1920
WORKDIR /app
2021
COPY ./src ./src

docker-compose-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
worker-pdf-layout:
4444
container_name: "worker-pdf-layout"
4545
entrypoint: [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--chdir", "./src", "app:app", "--bind", "0.0.0.0:5060", "--timeout", "10000"]
46-
image: ghcr.io/huridocs/pdf-document-layout-analysis:0.0.23
46+
image: ghcr.io/huridocs/pdf-document-layout-analysis:0.0.26
4747
init: true
4848
restart: unless-stopped
4949
ports:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ services:
3939
worker-pdf-layout-gpu:
4040
container_name: "worker-pdf-layout-gpu"
4141
entrypoint: [ "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--chdir", "./src", "app:app", "--bind", "0.0.0.0:5060", "--timeout", "10000"]
42-
image: ghcr.io/huridocs/pdf-document-layout-analysis:0.0.23
42+
image: ghcr.io/huridocs/pdf-document-layout-analysis:0.0.26
4343
init: true
4444
restart: unless-stopped
4545
network_mode: host

Makefile renamed to justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ install:
33

44
install_venv:
55
python3 -m venv .venv
6-
. .venv/bin/activate; python -m pip install --upgrade pip
7-
. .venv/bin/activate; python -m pip install -r dev-requirements.txt
6+
. .venv/bin/activate; uv pip install --upgrade pip
7+
. .venv/bin/activate; uv pip install -r dev-requirements.txt
88

99
formatter:
1010
. .venv/bin/activate; command black --line-length 125 .

0 commit comments

Comments
 (0)