paddlehub 一键部署 TypeError: 'dict' object is not callable
Created by: HaiLcoder
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献! 在留下您的问题时,辛苦您同步提供如下信息:
- 版本、环境信息 1)PaddleHub和PaddlePaddle版本:PaddleHub1.6.2,PaddlePaddle1.7.2 2)系统环境:系统类型win10,python版本3.6
- 复现信息:如为报错,请给出复现环境、复现步骤 不同的模型提交之后都会报同样的错误 C:\Users\Administrator>hub serving start -m lac Warning: Windows cannot use multiprocess working mode, PaddleHub Serving will switch to single process mode lac == 2.1.1 2020-05-14 10:58:34,038-INFO: * Running on http://0.0.0.0:8866/ (Press CTRL+C to quit) 2020-05-14 10:59:31,856-INFO: 127.0.0.1 - - [14/May/2020 10:59:31] "[37mGET / HTTP/1.1[0m" 200 - Exception on /get/modules [POST] Traceback (most recent call last): File "c:\programdata\anaconda3\lib\site-packages\flask\app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "c:\programdata\anaconda3\lib\site-packages\flask\app.py", line 1615, in full_dispatch_request return self.finalize_request(rv) File "c:\programdata\anaconda3\lib\site-packages\flask\app.py", line 1630, in finalize_request response = self.make_response(rv) File "c:\programdata\anaconda3\lib\site-packages\flask\app.py", line 1740, in make_response rv = self.response_class.force_type(rv, request.environ) File "c:\programdata\anaconda3\lib\site-packages\werkzeug\wrappers\base_response.py", line 269, in force_type response = BaseResponse(*_run_wsgi_app(response, environ)) File "c:\programdata\anaconda3\lib\site-packages\werkzeug\wrappers\base_response.py", line 26, in _run_wsgi_app return _run_wsgi_app(*args) File "c:\programdata\anaconda3\lib\site-packages\werkzeug\test.py", line 1096, in run_wsgi_app app_rv = app(environ, start_response) TypeError: 'dict' object is not callable