Merge pull request #54 from dyyzhmm/main

add denpendency for grpc-tools
This commit is contained in:
zhifu gao 2023-02-01 10:28:48 +08:00 committed by GitHub
commit 1d15bf69dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,11 @@ cd FunASR/funasr/runtime/python/grpc/
Step 2) Optional, generate protobuf file (run on server, the two generated pb files are both used for server and client). 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, # paraformer_pb2.py and paraformer_pb2_grpc.py are already generated,
# regenerate it only when you make changes to ./proto/paraformer.proto file. # regenerate it only when you make changes to ./proto/paraformer.proto file.
@ -38,6 +43,7 @@ Step 3) Start grpc server (on server).
python -m pip install grpcio grpcio-tools python -m pip install grpcio grpcio-tools
``` ```
``` ```
# Start server.
python grpc_main_server.py --port 10095 python grpc_main_server.py --port 10095
``` ```