Skip to content

Commit

Permalink
Bump tabled version to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Dec 22, 2024
1 parent d21cd0a commit 36c33f2
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-image-tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ on:
tabled_version:
description: tabled version of pypi
required: true
default: 0.1.7
default: 0.2.0
streamlit_version:
description: streamlit version of pypi
required: true
default: 1.40.2
default: 1.41.0

jobs:
build-and-push-docker-image:
Expand All @@ -29,9 +29,9 @@ jobs:
strategy:
matrix:
TABLED_VERSION:
- ${{ github.event.inputs.tabled_version || '0.1.7' }}
- ${{ github.event.inputs.tabled_version || '0.2.0' }}
STREAMLIT_VERSION:
- ${{ github.event.inputs.streamlit_version || '1.40.2' }}
- ${{ github.event.inputs.streamlit_version || '1.41.0' }}
platform:
- linux/amd64

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
results/
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"name": "debugpy: tabled gradio offline",
"type": "debugpy",
"request": "launch",
"program": "${env:CONDA_PREFIX}/envs/tabled/bin/gradio",
"program": "e:/cache/conda_env/tabled/Scripts/gradio.exe",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"args": [
Expand Down
5 changes: 3 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"command": "docker build -t xiaoyao9184/tabled:master -f ./docker/build@source/dockerfile ."
},
{
"label": "docker: build 0.1.7",
"label": "docker: build 0.2.0",
"type": "shell",
"command": "docker build -t xiaoyao9184/tabled:0.1.7 -f ./docker/build@pypi/dockerfile ."
"command": "docker build -t xiaoyao9184/tabled:0.2.0 -f ./docker/build@pypi/dockerfile ."
},
{
"label": "huggingface-cli: download models",
Expand All @@ -43,6 +43,7 @@
"&& huggingface-cli download datalab-to/surya_layout0 --revision main --cache-dir ./cache/huggingface/hub",
"&& huggingface-cli download vikp/surya_tablerec --revision main --cache-dir ./cache/huggingface/hub",
"&& huggingface-cli download vikp/surya_rec2 --revision main --cache-dir ./cache/huggingface/hub",
"&& huggingface-cli download datalab-to/ocr_error_detection --revision main --cache-dir ./cache/huggingface/hub",
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docker/build@pypi/dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG TABLED_VERSION=0.1.7
ARG STREAMLIT_VERSION=1.40.2
ARG TABLED_VERSION=0.2.0
ARG STREAMLIT_VERSION=1.41.0
ARG GRADIO_VERSION=5.8.0

FROM pytorch/pytorch:2.4.1-cuda12.4-cudnn9-runtime
Expand Down
2 changes: 1 addition & 1 deletion docker/build@source/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN pip3 install --upgrade pip
COPY ./tabled /app
RUN pip3 install --no-cache-dir \
-e . \
streamlit==1.40.2 \
streamlit==1.41.0 \
gradio==5.8.0
# The image is too large, with layers exceeding 10GB.
# RUN pip3 install poetry
Expand Down
2 changes: 1 addition & 1 deletion docker/up.gradio@cpu-offline/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

services:
tabled_gradio:
image: xiaoyao9184/tabled:0.1.7
image: xiaoyao9184/tabled:0.2.0
container_name: tabled_pdf_gradio
working_dir: /workspace/gradio
command: gradio gradio_app.py
Expand Down
2 changes: 1 addition & 1 deletion docker/up.gradio@gpu-offline/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

services:
tabled_gradio:
image: xiaoyao9184/tabled:0.1.7
image: xiaoyao9184/tabled:0.2.0
container_name: tabled_pdf_gradio
working_dir: /workspace/gradio
command: gradio gradio_app.py
Expand Down
2 changes: 1 addition & 1 deletion docker/up@cpu-offline/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

services:
tabled_app:
image: xiaoyao9184/tabled:0.1.7
image: xiaoyao9184/tabled:0.2.0
container_name: tabled_pdf_app
environment:
- TORCH_DEVICE=cpu
Expand Down
2 changes: 1 addition & 1 deletion docker/up@gpu-offline/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

services:
tabled_app:
image: xiaoyao9184/tabled:0.1.7
image: xiaoyao9184/tabled:0.2.0
container_name: tabled_pdf_app
environment:
- TORCH_DEVICE=cuda
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pytorch==2.4.1
- pytorch-cuda==12.4

- streamlit==1.40.2
- streamlit==1.41.0

- pip:
- -e ./tabled
Expand Down
2 changes: 1 addition & 1 deletion gradio/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch==2.5.1
tabled-pdf==0.1.7
tabled-pdf==0.2.0
gradio==5.8.0
huggingface-hub==0.26.3
2 changes: 1 addition & 1 deletion tabled
Submodule tabled updated 2 files
+600 −761 poetry.lock
+2 −2 pyproject.toml

0 comments on commit 36c33f2

Please sign in to comment.