zhifu gao
2023-02-01 1d15bf69ddf141b25024d6b1b875e66f304b49a1
Merge pull request #54 from dyyzhmm/main

add denpendency for grpc-tools
1个文件已修改
6 ■■■■■ 已修改文件
funasr/runtime/python/grpc/Readme.md 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
```