未验证 提交 e61797e9 编写于 作者: J Jiawei Wang 提交者: GitHub

Update rec_web_server.py

上级 478ae73f
...@@ -66,6 +66,6 @@ ocr_service = OCRService(name="ocr") ...@@ -66,6 +66,6 @@ ocr_service = OCRService(name="ocr")
ocr_service.load_model_config("ocr_rec_model") ocr_service.load_model_config("ocr_rec_model")
ocr_service.set_gpus("0") ocr_service.set_gpus("0")
ocr_service.init_rec() ocr_service.init_rec()
ocr_service.prepare_server(workdir="workdir", port=8900, device="gpu", gpuid=0) ocr_service.prepare_server(workdir="workdir", port=9292, device="gpu", gpuid=0)
ocr_service.run_rpc_service() ocr_service.run_rpc_service()
ocr_service.run_web_service() ocr_service.run_web_service()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册