PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

hubserving部署后,服务端提示:This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

Open greatliu opened this issue 7 months ago • 0 comments

Discussed in https://github.com/PaddlePaddle/PaddleOCR/discussions/13424

Originally posted by greatliu July 18, 2024 我使用paddlehub部署的表格识别服务: (paddlehub) great61@great61-LEGION-REN7000P-26AMR:~/Workspace/PaddleOCR-2.8.0$ export CUDA_VISIBLE_DEVICES=0 (paddlehub) great61@great61-LEGION-REN7000P-26AMR:~/Workspace/PaddleOCR-2.8.0$ hub serving start -c ./deploy/hubserving/structure_table/config.json /home/great61/miniconda3/envs/paddlehub/lib/python3.9/site-packages/_distutils_hack/init.py:26: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") [2024-07-18 09:03:22,140] [ WARNING] - The _initialize method in HubModule will soon be deprecated, you can use the init() to handle the initialization of the object use gpu: True CUDA_VISIBLE_DEVICES: 0

  • Serving Flask app 'paddlehub.serving.app_compat'
  • Debug mode: off [2024-07-18 09:03:24,429] [ INFO] _internal.py:97 - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on all addresses (0.0.0.0)
  • Running on http://127.0.0.1:8869
  • Running on http://192.168.1.2:8869 [2024-07-18 09:03:24,429] [ INFO] _internal.py:97 - Press CTRL+C to quit

如果我是做为生产环境使用,应该更改哪里才能使用wsgi server?

greatliu avatar Jul 19 '24 01:07 greatliu