-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98abbc5
commit db1cca1
Showing
12 changed files
with
185 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Python package | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install python dependencies | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry remove torch | ||
poetry run pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
- name: Build package | ||
run: | | ||
poetry build | ||
- name: Publish package | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
poetry config pypi-token.pypi "$PYPI_TOKEN" | ||
poetry publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Integration test | ||
|
||
on: [push] | ||
|
||
env: | ||
TORCH_DEVICE: "cpu" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install python dependencies | ||
run: | | ||
pip install poetry | ||
poetry install | ||
poetry remove torch | ||
poetry run pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
- name: Download benchmark data | ||
run: | | ||
wget -O benchmark_data.zip "https://drive.google.com/uc?export=download&id=1dbY0kBq2SUa885gmbLPUWSRzy5K7O5XJ" | ||
unzip benchmark_data.zip | ||
mkdir data | ||
mv bench_data.json data/bench_data.json | ||
- name: Run benchmark test | ||
run: | | ||
poetry run texify_benchmark --max 16 | ||
poetry run python scripts/verify_benchmark_scores.py data/bench_results.json | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "texify" | ||
version = "0.1.0" | ||
version = "0.1.2" | ||
description = "OCR for latex images" | ||
authors = ["Vik Paruchuri <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -26,9 +26,9 @@ numpy = "^1.26.2" | |
pypdfium2 = "^4.25.0" | ||
python-dotenv = "^1.0.0" | ||
watchdog = "^3.0.0" | ||
streamlit-drawable-canvas = {git = "https://github.com/VikParuchuri/streamlit-drawable-canvas.git", rev = "develop"} | ||
ftfy = "^6.1.3" | ||
tabulate = "^0.9.0" | ||
streamlit-drawable-canvas-jsretry = "^0.9.3" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
jupyter = "^1.0.0" | ||
|
Oops, something went wrong.