Skip to content

Commit

Permalink
Merge pull request #121 from lukas-blecher/pipy
Browse files Browse the repository at this point in the history
Pipy
  • Loading branch information
lukas-blecher authored Apr 13, 2022
2 parents 0cbca59 + 40351af commit db8c62b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude **\*.pth
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To run the model you need Python 3.7+

Install the package `pix2tex`:

```pip install git+https://github.com/lukas-blecher/LaTeX-OCR.git```
```pip install pix2tex```

Model checkpoints will be automatically downloaded.

Expand Down
2 changes: 1 addition & 1 deletion pix2tex/model/checkpoints/get_latest_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def download_as_bytes_with_progress(url: str, name: str = None) -> bytes:


def download_checkpoints():
tag = get_latest_tag()
tag = 'v0.0.1' # get_latest_tag()
path = os.path.dirname(__file__)
print('download weights', tag, 'to path', path)
weights = 'https://github.com/lukas-blecher/LaTeX-OCR/releases/download/%s/weights.pth' % tag
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description_file = README.md
26 changes: 23 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,30 @@

import setuptools

# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

setuptools.setup(
name='pix2tex',
version='0.0.1',
version='0.0.4',
description="pix2tex: Using a ViT to convert images of equations into LaTeX code.",
long_description=long_description,
long_description_content_type='text/markdown',
author='Lukas Blecher',
author_email='luk.blecher@gmail.com',
url='https://lukas-blecher.github.io/LaTeX-OCR/',
license='MIT',
keywords=[
'artificial intelligence',
'deep learning',
'image to text'
],
packages=setuptools.find_packages(),
package_data={
'pix2tex': [
'resources/*',
'model/checkpoints/*.pth',
'model/settings/*.yaml',
'model/dataset/*.json',
]
Expand Down Expand Up @@ -52,5 +65,12 @@
'pix2tex_gui = pix2tex.gui:main',
'pix2tex_cli = pix2tex.cli:main',
],
}
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
],
)

0 comments on commit db8c62b

Please sign in to comment.