mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix: try to gen proto with same environment
This commit is contained in:
parent
3f3b48b217
commit
998c745e2f
@ -36,4 +36,5 @@ protogen-clean:
|
||||
$(RM) backend_pb2_grpc.py backend_pb2.py
|
||||
|
||||
backend_pb2_grpc.py backend_pb2.py:
|
||||
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|
||||
bash install.sh $(CONDA_ENV_PATH)
|
||||
bash gen_grpc.sh
|
11
backend/python/parler-tts/gen_grpc.sh
Executable file
11
backend/python/parler-tts/gen_grpc.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
## A bash script wrapper that runs the transformers server with conda
|
||||
## It uses the protoc compiler to generate the gRPC code from the environment, because
|
||||
## The newer grpc versions are not compatible
|
||||
#See: https://github.com/mudler/LocalAI/pull/2027
|
||||
|
||||
# Activate conda environment
|
||||
source activate parler
|
||||
|
||||
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|
Loading…
Reference in New Issue
Block a user