nougat-latex / setup.py
zphilip48's picture
updating server database async
4ab48e7
"""
Donut
Copyright (c) 2022-present NAVER Corp.
MIT License
Copyright (c) Meta Platforms, Inc. and affiliates.
"""
import os
from setuptools import find_packages, setup
ROOT = os.path.abspath(os.path.dirname(__file__))
setup(
name="nougat-latex",
#version=read_version(),
description="Nougat: Neural Optical Understanding for Academic Documents",
#long_description=read_long_description(),
long_description_content_type="text/markdown",
author="Zhu Tianda",
author_email="zphilip48@gmail.com",
url="https://huggingface.co/spaces/zphilip48/nougat-latex",
license="MIT",
packages=find_packages(
exclude=[
"result",
]
),
py_modules=["predict", "app", "train", "test"],
python_requires=">=3.7",
install_requires=[
"transformers>=4.25.1",
"timm==0.6.13",
"orjson",
"opencv-python",
"opencv-python-headless",
"datasets[vision]",
"lightning==2.0.9",
"lightning-utilities==0.9.0",
"nltk",
"python-Levenshtein",
"sentencepiece",
"sconf>=0.2.3",
"urllib3<2.1,>=1.25.4"
"typing-extensions>4.9.0",
"fsspec==2024.2.0",
"albumentations==1.3.1",
"pypdfium2",
"pymupdf",
],
extras_require={
"api": [
"fastapi",
"uvicorn[standard]",
"python-multipart",
],
"dataset": [
"pytesseract",
"beautifulsoup4",
"scikit-learn",
"Pebble",
"pylatexenc",
"fuzzysearch",
"unidecode",
"htmlmin",
],
},
entry_points={
"console_scripts": [
"nougat = predict:main",
"nougat_api = app:main",
],
},
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)