From 01d19e923cbc4c1ef380a6fbf3798d4133859ea2 Mon Sep 17 00:00:00 2001 From: huangmingming <dyyzhmm@163.com> Date: 星期三, 01 二月 2023 10:25:29 +0800 Subject: [PATCH] add denpendency for grpc --- funasr/runtime/python/grpc/Readme.md | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/funasr/runtime/python/grpc/Readme.md b/funasr/runtime/python/grpc/Readme.md index 1ac27f2..053b3d0 100644 --- a/funasr/runtime/python/grpc/Readme.md +++ b/funasr/runtime/python/grpc/Readme.md @@ -27,6 +27,11 @@ Step 2) Optional, generate protobuf file (run on server, the two generated pb files are both used for server and client). ``` +# Optional, Install dependency. +python -m pip install grpcio grpcio-tools +``` + +``` # paraformer_pb2.py and paraformer_pb2_grpc.py are already generated, # regenerate it only when you make changes to ./proto/paraformer.proto file. python -m grpc_tools.protoc --proto_path=./proto -I ./proto --python_out=. --grpc_python_out=./ ./proto/paraformer.proto @@ -38,6 +43,7 @@ python -m pip install grpcio grpcio-tools ``` ``` +# Start server. python grpc_main_server.py --port 10095 ``` -- Gitblit v1.9.1