runtime error

Space not ready. Reason: Error, exitCode: 1, message: None

Container logs:

Defaulting to user installation because normal site-packages is not writeable
Collecting paddlepaddle
  Downloading paddlepaddle-2.3.2-cp38-cp38-manylinux1_x86_64.whl (112.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.6/112.6 MB 24.9 MB/s eta 0:00:00
Requirement already satisfied: six in /home/user/.local/lib/python3.8/site-packages (from paddlepaddle) (1.16.0)
Collecting protobuf<=3.20.0,>=3.1.0
  Downloading protobuf-3.20.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 94.0 MB/s eta 0:00:00
Requirement already satisfied: requests>=2.20.0 in /home/user/.local/lib/python3.8/site-packages (from paddlepaddle) (2.28.1)
Collecting astor
  Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Requirement already satisfied: decorator in /home/user/.local/lib/python3.8/site-packages (from paddlepaddle) (5.1.1)
Requirement already satisfied: Pillow in /home/user/.local/lib/python3.8/site-packages (from paddlepaddle) (9.2.0)
Collecting paddle-bfloat==0.1.7
  Downloading paddle_bfloat-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.5/385.5 KB 62.6 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.13 in /home/user/.local/lib/python3.8/site-packages (from paddlepaddle) (1.23.4)
Collecting opt-einsum==3.3.0
  Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 KB 15.8 MB/s eta 0:00:00
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.local/lib/python3.8/site-packages (from requests>=2.20.0->paddlepaddle) (2022.9.24)
Requirement already satisfied: charset-normalizer<3,>=2 in /home/user/.local/lib/python3.8/site-packages (from requests>=2.20.0->paddlepaddle) (2.1.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/user/.local/lib/python3.8/site-packages (from requests>=2.20.0->paddlepaddle) (1.26.12)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.local/lib/python3.8/site-packages (from requests>=2.20.0->paddlepaddle) (3.4)
Installing collected packages: paddle-bfloat, protobuf, opt-einsum, astor, paddlepaddle
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.3
    Uninstalling protobuf-3.20.3:
      Successfully uninstalled protobuf-3.20.3
Successfully installed astor-0.8.1 opt-einsum-3.3.0 paddle-bfloat-0.1.7 paddlepaddle-2.3.2 protobuf-3.20.0
WARNING: You are using pip version 22.0.2; however, version 22.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Defaulting to user installation because normal site-packages is not writeable
Collecting paddleocr
  Downloading paddleocr-2.6.1.0-py3-none-any.whl (409 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 409.6/409.6 KB 36.6 MB/s eta 0:00:00
Collecting premailer
  Downloading premailer-3.10.0-py2.py3-none-any.whl (19 kB)
Collecting opencv-python
  Downloading opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 42.0 MB/s eta 0:00:00
Collecting lmdb
  Downloading lmdb-1.3.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (305 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 305.9/305.9 KB 52.1 MB/s eta 0:00:00
Collecting rapidfuzz
  Downloading rapidfuzz-2.11.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 MB 110.1 MB/s eta 0:00:00
Collecting visualdl
  Downloading visualdl-2.4.1-py3-none-any.whl (4.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 123.3 MB/s eta 0:00:00
Collecting pyclipper
  Downloading pyclipper-1.3.0.post3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (619 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 619.2/619.2 KB 86.1 MB/s eta 0:00:00
Requirement already satisfied: fonttools>=4.24.0 in /home/user/.local/lib/python3.8/site-packages (from paddleocr) (4.38.0)
Collecting imgaug
  Downloading imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 948.0/948.0 KB 106.9 MB/s eta 0:00:00
Collecting python-docx
  Downloading python-docx-0.8.11.tar.gz (5.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 121.4 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: tqdm in /home/user/.local/lib/python3.8/site-packages (from paddleocr) (4.64.1)
Collecting openpyxl
  Downloading openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.1/242.1 KB 44.8 MB/s eta 0:00:00
Collecting pdf2docx
  Downloading pdf2docx-0.5.6-py3-none-any.whl (148 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.4/148.4 KB 29.9 MB/s eta 0:00:00
Collecting attrdict
  Downloading attrdict-2.0.1-py2.py3-none-any.whl (9.9 kB)
Collecting lxml
  Downloading lxml-4.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 117.7 MB/s eta 0:00:00
Collecting scikit-image
  Downloading scikit_image-0.19.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 109.6 MB/s eta 0:00:00
Collecting fire>=0.3.0
  Downloading fire-0.4.0.tar.gz (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.7/87.7 KB 22.3 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: numpy in /home/user/.local/lib/python3.8/site-packages (from paddleocr) (1.23.4)
Collecting lanms-neo==1.0.2
  Downloading lanms_neo-1.0.2.tar.gz (39 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.2/128.2 KB 29.4 MB/s eta 0:00:00
Collecting Polygon3
  Downloading Polygon3-3.0.9.1.tar.gz (39 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting cython
  Downloading Cython-0.29.32-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 120.3 MB/s eta 0:00:00
Collecting PyMuPDF==1.19.0
  Downloading PyMuPDF-1.19.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (8.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.7/8.7 MB 109.8 MB/s eta 0:00:00
Collecting shapely
  Downloading Shapely-1.8.5.post1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 116.4 MB/s eta 0:00:00
Collecting opencv-contrib-python
  Downloading opencv_contrib_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.1/67.1 MB 38.3 MB/s eta 0:00:00
Requirement already satisfied: six in /home/user/.local/lib/python3.8/site-packages (from fire>=0.3.0->paddleocr) (1.16.0)
Collecting termcolor
  Downloading termcolor-2.0.1-py3-none-any.whl (5.4 kB)
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Collecting scipy
  Downloading scipy-1.9.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.8/33.8 MB 69.3 MB/s eta 0:00:00
Requirement already satisfied: Pillow in /home/user/.local/lib/python3.8/site-packages (from imgaug->paddleocr) (9.2.0)
Collecting imageio
  Downloading imageio-2.22.2-py3-none-any.whl (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 109.8 MB/s eta 0:00:00
Requirement already satisfied: matplotlib in /home/user/.local/lib/python3.8/site-packages (from imgaug->paddleocr) (3.6.1)
Requirement already satisfied: packaging>=20.0 in /home/user/.local/lib/python3.8/site-packages (from scikit-image->paddleocr) (21.3)
Collecting PyWavelets>=1.1.1
  Downloading PyWavelets-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 142.7 MB/s eta 0:00:00
Collecting tifffile>=2019.7.26
  Downloading tifffile-2022.10.10-py3-none-any.whl (210 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 210.3/210.3 KB 47.1 MB/s eta 0:00:00
Collecting networkx>=2.2
  Downloading networkx-2.8.7-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 127.8 MB/s eta 0:00:00
Collecting et-xmlfile
  Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Requirement already satisfied: cachetools in /home/user/.local/lib/python3.8/site-packages (from premailer->paddleocr) (5.2.0)
Collecting cssselect
  Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: requests in /home/user/.local/lib/python3.8/site-packages (from premailer->paddleocr) (2.28.1)
Collecting cssutils
  Downloading cssutils-2.6.0-py3-none-any.whl (399 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 399.7/399.7 KB 54.8 MB/s eta 0:00:00
Requirement already satisfied: multiprocess in /home/user/.local/lib/python3.8/site-packages (from visualdl->paddleocr) (0.70.13)
Requirement already satisfied: protobuf>=3.11.0 in /home/user/.local/lib/python3.8/site-packages (from visualdl->paddleocr) (3.20.0)
Collecting bce-python-sdk
  Downloading bce_python_sdk-0.8.74-py3-none-any.whl (204 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 204.6/204.6 KB 33.2 MB/s eta 0:00:00
Collecting flask>=1.1.1
  Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 KB 26.4 MB/s eta 0:00:00
Requirement already satisfied: pandas in /home/user/.local/lib/python3.8/site-packages (from visualdl->paddleocr) (1.5.1)
Collecting Flask-Babel>=1.0.0
  Downloading Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB)
Requirement already satisfied: Jinja2>=3.0 in /home/user/.local/lib/python3.8/site-packages (from flask>=1.1.1->visualdl->paddleocr) (3.1.2)
Collecting Werkzeug>=2.2.2
  Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 KB 48.3 MB/s eta 0:00:00
Collecting itsdangerous>=2.0
  Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Requirement already satisfied: importlib-metadata>=3.6.0 in /home/user/.local/lib/python3.8/site-packages (from flask>=1.1.1->visualdl->paddleocr) (5.0.0)
Requirement already satisfied: click>=8.0 in /home/user/.local/lib/python3.8/site-packages (from flask>=1.1.1->visualdl->paddleocr) (8.0.4)
Requirement already satisfied: pytz in /home/user/.local/lib/python3.8/site-packages (from Flask-Babel>=1.0.0->visualdl->paddleocr) (2022.5)
Collecting Babel>=2.3
  Downloading Babel-2.10.3-py3-none-any.whl (9.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.5/9.5 MB 147.0 MB/s eta 0:00:00
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/user/.local/lib/python3.8/site-packages (from packaging>=20.0->scikit-image->paddleocr) (3.0.9)
Collecting future>=0.6.0
  Downloading future-0.18.2.tar.gz (829 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 829.2/829.2 KB 96.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: pycryptodome>=3.8.0 in /home/user/.local/lib/python3.8/site-packages (from bce-python-sdk->visualdl->paddleocr) (3.15.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->imgaug->paddleocr) (1.4.4)
Requirement already satisfied: contourpy>=1.0.1 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->imgaug->paddleocr) (1.0.5)
Requirement already satisfied: python-dateutil>=2.7 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->imgaug->paddleocr) (2.8.2)
Requirement already satisfied: cycler>=0.10 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->imgaug->paddleocr) (0.11.0)
Requirement already satisfied: dill>=0.3.5.1 in /home/user/.local/lib/python3.8/site-packages (from multiprocess->visualdl->paddleocr) (0.3.5.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/user/.local/lib/python3.8/site-packages (from requests->premailer->paddleocr) (1.26.12)
Requirement already satisfied: certifi>=2017.4.17 in /home/user/.local/lib/python3.8/site-packages (from requests->premailer->paddleocr) (2022.9.24)
Requirement already satisfied: charset-normalizer<3,>=2 in /home/user/.local/lib/python3.8/site-packages (from requests->premailer->paddleocr) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /home/user/.local/lib/python3.8/site-packages (from requests->premailer->paddleocr) (3.4)
Requirement already satisfied: zipp>=0.5 in /home/user/.local/lib/python3.8/site-packages (from importlib-metadata>=3.6.0->flask>=1.1.1->visualdl->paddleocr) (3.10.0)
Requirement already satisfied: MarkupSafe>=2.0 in /home/user/.local/lib/python3.8/site-packages (from Jinja2>=3.0->flask>=1.1.1->visualdl->paddleocr) (2.1.1)
Building wheels for collected packages: lanms-neo, fire, python-docx, Polygon3, future
  Building wheel for lanms-neo (pyproject.toml): started
  Building wheel for lanms-neo (pyproject.toml): finished with status 'done'
  Created wheel for lanms-neo: filename=lanms_neo-1.0.2-cp38-cp38-linux_x86_64.whl size=118974 sha256=ed13fcde859e2d23b08c56e45a2049e65309251147362c734dc4b963d276f6ce
  Stored in directory: /home/user/.cache/pip/wheels/e2/a4/df/d69223851b1eb3a4d1b961ae86a9c08bba24412cd3939c5850
  Building wheel for fire (setup.py): started
  Building wheel for fire (setup.py): finished with status 'done'
  Created wheel for fire: filename=fire-0.4.0-py2.py3-none-any.whl size=115928 sha256=a0e43be0089566ea5a0ee01802f0d389a6104b85b83faddfcd9e3fd77e6b998e
  Stored in directory: /home/user/.cache/pip/wheels/1f/10/06/2a990ee4d73a8479fe2922445e8a876d38cfbfed052284c6a1
  Building wheel for python-docx (setup.py): started
  Building wheel for python-docx (setup.py): finished with status 'done'
  Created wheel for python-docx: filename=python_docx-0.8.11-py3-none-any.whl size=184600 sha256=bd7f7e248dbff0881b16154d5c35dba8f1eb8e7bc69be3c645dd08ae9e1149be
  Stored in directory: /home/user/.cache/pip/wheels/32/b8/b2/c4c2b95765e615fe139b0b17b5ea7c0e1b6519b0a9ec8fb34d
  Building wheel for Polygon3 (setup.py): started
  Building wheel for Polygon3 (setup.py): finished with status 'done'
  Created wheel for Polygon3: filename=Polygon3-3.0.9.1-cp38-cp38-linux_x86_64.whl size=132503 sha256=cd55fd8cd7108de749407cb1a67bfdbbece1f9afc1cb4fea0283d228352ebab2
  Stored in directory: /home/user/.cache/pip/wheels/49/63/6e/fdc7a306f863a60035fa86b3b017b363fd15eadd5a89ae027d
  Building wheel for future (setup.py): started
  Building wheel for future (setup.py): finished with status 'done'
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=69fa50dec593bbfb1392f710da822637f1dcbe9a32fbe21fcfcd199738ae7de8
  Stored in directory: /home/user/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built lanms-neo fire python-docx Polygon3 future
Installing collected packages: pyclipper, Polygon3, lmdb, lanms-neo, Werkzeug, tifffile, termcolor, soupsieve, shapely, scipy, rapidfuzz, PyWavelets, PyMuPDF, opencv-python, opencv-contrib-python, networkx, lxml, itsdangerous, imageio, future, et-xmlfile, cython, cssutils, cssselect, Babel, attrdict, scikit-image, python-docx, premailer, openpyxl, flask, fire, beautifulsoup4, bce-python-sdk, pdf2docx, imgaug, Flask-Babel, visualdl, paddleocr
Successfully installed Babel-2.10.3 Flask-Babel-2.0.0 Polygon3-3.0.9.1 PyMuPDF-1.19.0 PyWavelets-1.4.1 Werkzeug-2.2.2 attrdict-2.0.1 bce-python-sdk-0.8.74 beautifulsoup4-4.11.1 cssselect-1.1.0 cssutils-2.6.0 cython-0.29.32 et-xmlfile-1.1.0 fire-0.4.0 flask-2.2.2 future-0.18.2 imageio-2.22.2 imgaug-0.4.0 itsdangerous-2.1.2 lanms-neo-1.0.2 lmdb-1.3.0 lxml-4.9.1 networkx-2.8.7 opencv-contrib-python-4.6.0.66 opencv-python-4.6.0.66 openpyxl-3.0.10 paddleocr-2.6.1.0 pdf2docx-0.5.6 premailer-3.10.0 pyclipper-1.3.0.post3 python-docx-0.8.11 rapidfuzz-2.11.1 scikit-image-0.19.3 scipy-1.9.3 shapely-1.8.5.post1 soupsieve-2.3.2.post1 termcolor-2.0.1 tifffile-2022.10.10 visualdl-2.4.1
WARNING: You are using pip version 22.0.2; however, version 22.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

  0%|          | 0.00/129k [00:00<?, ?B/s]
100%|██████████| 129k/129k [00:00<00:00, 56.6MB/s]
Caching examples at: '/home/user/app/gradio_cached_examples/16/log.csv'
download https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_det_infer.tar to /home/user/.paddleocr/whl/det/en/en_PP-OCRv3_det_infer/en_PP-OCRv3_det_infer.tar

  0%|          | 0.00/4.00M [00:00<?, ?iB/s]
  0%|          | 3.07k/4.00M [00:00<05:50, 11.4kiB/s]
  0%|          | 19.5k/4.00M [00:00<02:36, 25.4kiB/s]
  1%|          | 35.8k/4.00M [00:01<01:45, 37.6kiB/s]
  1%|▏         | 52.2k/4.00M [00:01<01:27, 45.2kiB/s]
  2%|▏         | 68.6k/4.00M [00:01<01:18, 50.2kiB/s]
  2%|▏         | 85.0k/4.00M [00:01<01:13, 53.4kiB/s]
  3%|▎         | 101k/4.00M [00:02<01:10, 55.6kiB/s] 
  3%|▎         | 118k/4.00M [00:02<01:28, 43.8kiB/s]
  3%|▎         | 134k/4.00M [00:02<01:20, 48.0kiB/s]
  4%|▍         | 151k/4.00M [00:03<01:15, 51.3kiB/s]
  4%|▍         | 167k/4.00M [00:03<01:11, 53.9kiB/s]
  5%|▍         | 183k/4.00M [00:03<01:08, 55.8kiB/s]
  5%|▍         | 200k/4.00M [00:04<01:06, 57.2kiB/s]
  6%|▌         | 232k/4.00M [00:04<00:49, 75.7kiB/s]
  6%|▌         | 249k/4.00M [00:04<00:52, 71.3kiB/s]
  7%|▋         | 265k/4.00M [00:04<00:54, 68.2kiB/s]
  7%|▋         | 298k/4.00M [00:05<00:44, 83.9kiB/s]
  8%|▊         | 314k/4.00M [00:05<00:47, 77.0kiB/s]
  9%|▊         | 347k/4.00M [00:05<00:40, 90.1kiB/s]
  9%|▉         | 380k/4.00M [00:05<00:36, 99.5kiB/s]
 10%|█         | 413k/4.00M [00:06<00:33, 106kiB/s] 
 11%|█         | 445k/4.00M [00:06<00:32, 111kiB/s]
 12%|█▏        | 495k/4.00M [00:06<00:26, 132kiB/s]
 13%|█▎        | 527k/4.00M [00:07<00:27, 129kiB/s]
 15%|█▍        | 593k/4.00M [00:07<00:20, 163kiB/s]
 16%|█▌        | 642k/4.00M [00:07<00:19, 169kiB/s]
 18%|█▊        | 708k/4.00M [00:07<00:17, 191kiB/s]
 20%|█▉        | 790k/4.00M [00:08<00:14, 224kiB/s]
 21%|██▏       | 855k/4.00M [00:08<00:13, 230kiB/s]
 23%|██▎       | 937k/4.00M [00:08<00:12, 252kiB/s]
 26%|██▌       | 1.04M/4.00M [00:08<00:10, 285kiB/s]
 28%|██▊       | 1.13M/4.00M [00:09<00:09, 309kiB/s]
 31%|███       | 1.25M/4.00M [00:09<00:08, 343kiB/s]
 34%|███▍      | 1.38M/4.00M [00:09<00:06, 386kiB/s]
 38%|███▊      | 1.53M/4.00M [00:10<00:05, 434kiB/s]
 42%|████▏     | 1.69M/4.00M [00:10<00:04, 485kiB/s]
 47%|████▋     | 1.89M/4.00M [00:10<00:03, 558kiB/s]
 52%|█████▏    | 2.08M/4.00M [00:10<00:03, 609kiB/s]
 58%|█████▊    | 2.33M/4.00M [00:11<00:02, 699kiB/s]
 65%|██████▌   | 2.61M/4.00M [00:11<00:01, 798kiB/s]
 73%|███████▎  | 2.94M/4.00M [00:11<00:01, 923kiB/s]
 83%|████████▎ | 3.31M/4.00M [00:11<00:00, 1.06MiB/s]
 93%|█████████▎| 3.74M/4.00M [00:12<00:00, 1.22MiB/s]
100%|██████████| 4.00M/4.00M [00:12<00:00, 329kiB/s] 
download https://paddleocr.bj.bcebos.com/PP-OCRv3/english/en_PP-OCRv3_rec_infer.tar to /home/user/.paddleocr/whl/rec/en/en_PP-OCRv3_rec_infer/en_PP-OCRv3_rec_infer.tar

  0%|          | 0.00/9.96M [00:00<?, ?iB/s]
  0%|          | 3.07k/9.96M [00:00<14:50, 11.2kiB/s]
  0%|          | 19.5k/9.96M [00:00<06:38, 24.9kiB/s]
  0%|          | 35.8k/9.96M [00:01<04:29, 36.9kiB/s]
  1%|          | 52.2k/9.96M [00:01<03:43, 44.4kiB/s]
  1%|          | 68.6k/9.96M [00:01<03:21, 49.2kiB/s]
  1%|          | 85.0k/9.96M [00:01<03:08, 52.4kiB/s]
  1%|          | 101k/9.96M [00:02<03:00, 54.6kiB/s] 
  1%|          | 118k/9.96M [00:02<02:55, 56.1kiB/s]
  1%|▏         | 134k/9.96M [00:02<02:51, 57.2kiB/s]
  2%|▏         | 151k/9.96M [00:03<02:49, 57.8kiB/s]
  2%|▏         | 167k/9.96M [00:03<02:47, 58.3kiB/s]
  2%|▏         | 183k/9.96M [00:03<02:46, 58.7kiB/s]
  2%|▏         | 200k/9.96M [00:03<02:45, 58.9kiB/s]
  2%|▏         | 216k/9.96M [00:04<02:44, 59.1kiB/s]
  2%|▏         | 232k/9.96M [00:04<02:44, 59.2kiB/s]
  3%|▎         | 265k/9.96M [00:04<02:05, 77.1kiB/s]
  3%|▎         | 282k/9.96M [00:04<02:14, 71.8kiB/s]
  3%|▎         | 314k/9.96M [00:05<01:52, 86.0kiB/s]
  3%|▎         | 347k/9.96M [00:05<01:40, 95.9kiB/s]
  4%|▍         | 380k/9.96M [00:05<01:33, 103kiB/s] 
  4%|▍         | 413k/9.96M [00:06<01:28, 108kiB/s]
  5%|▍         | 462k/9.96M [00:06<01:13, 129kiB/s]
  5%|▌         | 511k/9.96M [00:06<01:05, 144kiB/s]
  6%|▌         | 577k/9.96M [00:06<00:54, 172kiB/s]
  7%|▋         | 658k/9.96M [00:07<00:44, 210kiB/s]
  7%|▋         | 740k/9.96M [00:07<00:39, 236kiB/s]
  8%|▊         | 822k/9.96M [00:07<00:35, 254kiB/s]
  9%|▉         | 937k/9.96M [00:07<00:29, 303kiB/s]
 11%|█         | 1.07M/9.96M [00:08<00:25, 355kiB/s]
 12%|█▏        | 1.20M/9.96M [00:08<00:22, 391kiB/s]
 14%|█▎        | 1.36M/9.96M [00:08<00:19, 452kiB/s]
 15%|█▌        | 1.54M/9.96M [00:09<00:16, 513kiB/s]
 17%|█▋        | 1.74M/9.96M [00:09<00:14, 573kiB/s]
 20%|█▉        | 1.95M/9.96M [00:09<00:12, 633kiB/s]
 22%|██▏       | 2.20M/9.96M [00:09<00:10, 711kiB/s]
 25%|██▍       | 2.48M/9.96M [00:10<00:09, 801kiB/s]
 28%|██▊       | 2.77M/9.96M [00:10<00:08, 881kiB/s]
 31%|███▏      | 3.12M/9.96M [00:10<00:06, 992kiB/s]
 35%|███▍      | 3.48M/9.96M [00:11<00:05, 1.09MiB/s]
 39%|███▉      | 3.89M/9.96M [00:11<00:05, 1.21MiB/s]
 43%|████▎     | 4.31M/9.96M [00:11<00:04, 1.31MiB/s]
 48%|████▊     | 4.80M/9.96M [00:11<00:03, 1.45MiB/s]
 53%|█████▎    | 5.31M/9.96M [00:12<00:02, 1.57MiB/s]
 59%|█████▉    | 5.87M/9.96M [00:12<00:02, 1.71MiB/s]
 65%|██████▍   | 6.47M/9.96M [00:12<00:01, 1.85MiB/s]
 72%|███████▏  | 7.13M/9.96M [00:12<00:01, 2.01MiB/s]
 79%|███████▉  | 7.85M/9.96M [00:13<00:00, 2.19MiB/s]
 87%|████████▋ | 8.62M/9.96M [00:13<00:00, 2.37MiB/s]
 95%|█████████▍| 9.44M/9.96M [00:13<00:00, 2.55MiB/s]
100%|██████████| 9.96M/9.96M [00:13<00:00, 723kiB/s] 
download https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar to /home/user/.paddleocr/whl/cls/ch_ppocr_mobile_v2.0_cls_infer/ch_ppocr_mobile_v2.0_cls_infer.tar

  0%|          | 0.00/2.19M [00:00<?, ?iB/s]
  0%|          | 3.07k/2.19M [00:00<03:23, 10.7kiB/s]
  1%|          | 19.5k/2.19M [00:00<00:57, 38.1kiB/s]
  2%|▏         | 35.8k/2.19M [00:00<00:46, 46.8kiB/s]
  2%|▏         | 52.2k/2.19M [00:01<00:41, 50.9kiB/s]
  3%|▎         | 68.6k/2.19M [00:01<00:39, 53.1kiB/s]
  4%|▍         | 85.0k/2.19M [00:01<00:38, 54.5kiB/s]
  5%|▍         | 101k/2.19M [00:02<00:37, 55.4kiB/s] 
  5%|▌         | 118k/2.19M [00:02<00:37, 55.9kiB/s]
  6%|▌         | 134k/2.19M [00:02<00:36, 56.3kiB/s]
  8%|▊         | 167k/2.19M [00:02<00:27, 74.2kiB/s]
  9%|▉         | 200k/2.19M [00:03<00:23, 86.5kiB/s]
 11%|█         | 232k/2.19M [00:03<00:20, 94.9kiB/s]
 12%|█▏        | 265k/2.19M [00:03<00:19, 101kiB/s] 
 14%|█▎        | 298k/2.19M [00:04<00:18, 105kiB/s]
 17%|█▋        | 364k/2.19M [00:04<00:12, 142kiB/s]
 19%|█▉        | 413k/2.19M [00:04<00:11, 151kiB/s]
 22%|██▏       | 478k/2.19M [00:04<00:09, 174kiB/s]
 26%|██▌       | 560k/2.19M [00:05<00:07, 208kiB/s]
 30%|███       | 658k/2.19M [00:05<00:06, 248kiB/s]
 35%|███▍      | 757k/2.19M [00:05<00:05, 277kiB/s]
 41%|████      | 888k/2.19M [00:06<00:03, 331kiB/s]
 47%|████▋     | 1.02M/2.19M [00:06<00:03, 369kiB/s]
 54%|█████▍    | 1.18M/2.19M [00:06<00:02, 430kiB/s]
 62%|██████▏   | 1.36M/2.19M [00:06<00:01, 489kiB/s]
 71%|███████▏  | 1.56M/2.19M [00:07<00:01, 548kiB/s]
 82%|████████▏ | 1.79M/2.19M [00:07<00:00, 624kiB/s]
 93%|█████████▎| 2.03M/2.19M [00:07<00:00, 694kiB/s]
100%|██████████| 2.19M/2.19M [00:07<00:00, 283kiB/s]
[2022/10/24 13:27:58] ppocr DEBUG: Namespace(alpha=1.0, benchmark=False, beta=1.0, cls_batch_num=6, cls_image_shape='3, 48, 192', cls_model_dir='/home/user/.paddleocr/whl/cls/ch_ppocr_mobile_v2.0_cls_infer', cls_thresh=0.9, cpu_threads=10, crop_res_save_dir='./output', det=True, det_algorithm='DB', det_box_type='quad', det_db_box_thresh=0.6, det_db_score_mode='fast', det_db_thresh=0.3, det_db_unclip_ratio=1.5, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, det_east_score_thresh=0.8, det_limit_side_len=960, det_limit_type='max', det_model_dir='/home/user/.paddleocr/whl/det/en/en_PP-OCRv3_det_infer', det_pse_box_thresh=0.85, det_pse_min_area=16, det_pse_scale=1, det_pse_thresh=0, det_sast_nms_thresh=0.2, det_sast_score_thresh=0.5, draw_img_save_dir='./inference_results', drop_score=0.5, e2e_algorithm='PGNet', e2e_char_dict_path='./ppocr/utils/ic15_dict.txt', e2e_limit_side_len=768, e2e_limit_type='max', e2e_model_dir=None, e2e_pgnet_mode='fast', e2e_pgnet_score_thresh=0.5, e2e_pgnet_valid_set='totaltext', enable_mkldnn=False, fourier_degree=5, gpu_mem=500, help='==SUPPRESS==', image_dir=None, image_orientation=False, ir_optim=True, kie_algorithm='LayoutXLM', label_list=['0', '180'], lang='en', layout=True, layout_dict_path=None, layout_model_dir=None, layout_nms_threshold=0.5, layout_score_threshold=0.5, max_batch_size=10, max_text_length=25, merge_no_span_structure=True, min_subgraph_size=15, mode='structure', ocr=True, ocr_order_method=None, ocr_version='PP-OCRv3', output='./output', page_num=0, precision='fp32', process_id=0, re_model_dir=None, rec=True, rec_algorithm='SVTR_LCNet', rec_batch_num=6, rec_char_dict_path='/home/user/.local/lib/python3.8/site-packages/paddleocr/ppocr/utils/en_dict.txt', rec_image_inverse=True, rec_image_shape='3, 48, 320', rec_model_dir='/home/user/.paddleocr/whl/rec/en/en_PP-OCRv3_rec_infer', recovery=False, save_crop_res=False, save_log_path='./log_output/', scales=[8, 16, 32], ser_dict_path='../train_data/XFUND/class_list_xfun.txt', ser_model_dir=None, show_log=True, sr_batch_num=1, sr_image_shape='3, 32, 128', sr_model_dir=None, structure_version='PP-Structurev2', table=True, table_algorithm='TableAttn', table_char_dict_path=None, table_max_len=488, table_model_dir=None, total_process_num=1, type='ocr', use_angle_cls=True, use_dilation=False, use_gpu=False, use_mp=False, use_npu=False, use_onnx=False, use_pdf2docx_api=False, use_pdserving=False, use_space_char=True, use_tensorrt=False, use_visual_backbone=True, use_xpu=False, vis_font_path='./doc/fonts/simfang.ttf', warmup=False)
[2022/10/24 13:27:59] ppocr DEBUG: dt_boxes num : 4, elapse : 0.4678471088409424
[2022/10/24 13:27:59] ppocr DEBUG: cls num  : 4, elapse : 0.035427093505859375
[2022/10/24 13:27:59] ppocr DEBUG: rec_res num  : 4, elapse : 0.29360318183898926
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "app.py", line 30, in <module>
    gr.Interface(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 626, in __init__
    self.examples_handler = Examples(
  File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 56, in create_examples
    utils.synchronize_async(examples_obj.create)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/utils.py", line 364, in synchronize_async
    return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 96, in sync
    raise return_result
  File "/home/user/.local/lib/python3.8/site-packages/fsspec/asyn.py", line 53, in _runner
    result[0] = await coro
  File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 208, in create
    await self.cache_interface_examples()
  File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 246, in cache_interface_examples
    prediction = await self.predict_example(example_id)
  File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 263, in predict_example
    predictions = await anyio.to_thread.run_sync(self.fn, *processed_input)
  File "/home/user/.local/lib/python3.8/site-packages/anyio/to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "/home/user/.local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "app.py", line 19, in inference
    im_show = draw_ocr(image, boxes, txts,
  File "/home/user/.local/lib/python3.8/site-packages/paddleocr/tools/infer/utility.py", line 385, in draw_ocr
    box = np.reshape(np.array(boxes[i]), [-1, 1, 2]).astype(np.int64)
ValueError: setting an array element with a sequence.