提交 2994e661 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #400 from PaddlePaddle/reyoung-patch-1

Do not create new thread for inference
......@@ -57,4 +57,4 @@ if __name__ == '__main__':
params = paddle.parameters.Parameters.from_tar(param_f)
inferer = paddle.inference.Inference(parameters=params, fileobj=topo_f)
print 'serving on port', port
app.run(host='0.0.0.0', port=port, threaded=True)
app.run(host='0.0.0.0', port=port, threaded=False)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册