-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to gen proto with same environment
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |