π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
Update rapidocr-web setup
SWHLa0e3faf8a208
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr_web.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_web.ymlindex 0ee648b..77ee117 100644--- a/.github/workflows/gen_whl_to_pypi_rapidocr_web.yml+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_web.yml@@ -40,15 +40,15 @@ jobs:python -m pip install --upgrade pippython setup.py bdist_wheel ${{ github.event.head_commit.message }}- - name: Publish distribution π¦ to Test PyPI- uses: pypa/[email protected]- with:- password: ${{ secrets.TEST_PYPI_API_TOKEN }}- repository_url: https://test.pypi.org/legacy/- packages_dir: ocrweb/dist/-- # - name: Publish distribution π¦ to PyPI+ # - name: Publish distribution π¦ to Test PyPI# uses: pypa/[email protected]# with:- # password: ${{ secrets.RAPIDOCR_OPENVINO }}- # packages_dir: ocrweb/dist/+ # password: ${{ secrets.TEST_PYPI_API_TOKEN }}+ # repository_url: https://test.pypi.org/legacy/+ # packages_dir: ocrweb/dist/++ - name: Publish distribution π¦ to PyPI+ uses: pypa/[email protected]+ with:+ password: ${{ secrets.RAPIDOCR_OPENVINO }}+ packages_dir: ocrweb/dist/diff --git a/ocrweb/setup.py b/ocrweb/setup.pyindex b0ec805..b14c718 100644--- a/ocrweb/setup.py+++ b/ocrweb/setup.py@@ -70,7 +70,7 @@ setuptools.setup(download_url='https://github.com/RapidAI/RapidOCR.git',license='Apache-2.0',include_package_data=True,- install_requires=['requests', 'Flask>=2.1.0'],+ install_requires=['requests', 'Flask>=2.1.0', 'rapidocr_onnxruntime'],packages=[MODULE_NAME,f'{MODULE_NAME}.static.css',f'{MODULE_NAME}.static.js',@@ -89,8 +89,8 @@ setuptools.setup(entry_points={'console_scripts': [f'{MODULE_NAME}={MODULE_NAME}.ocrweb:main'],},- extras_require={- 'onnxruntime': ['rapidocr_onnxruntime'],- 'openvino': ['rapidocr_openvino']- }+ # extras_require={+ # 'onnxruntime': ['rapidocr_onnxruntime'],+ # 'openvino': ['rapidocr_openvino']+ # })