2023-11-30 16:46:55 +00:00
|
|
|
.PHONY: sentencetransformers
|
2024-04-13 07:37:32 +00:00
|
|
|
sentencetransformers: protogen
|
2023-12-21 07:35:15 +00:00
|
|
|
$(MAKE) -C ../common-env/transformers
|
|
|
|
|
2023-11-20 20:21:17 +00:00
|
|
|
|
2023-11-30 16:46:55 +00:00
|
|
|
.PHONY: run
|
2024-04-13 07:37:32 +00:00
|
|
|
run: protogen
|
2023-11-20 20:21:17 +00:00
|
|
|
@echo "Running sentencetransformers..."
|
|
|
|
bash run.sh
|
|
|
|
@echo "sentencetransformers run."
|
|
|
|
|
|
|
|
# It is not working well by using command line. It only6 works with IDE like VSCode.
|
2023-11-30 16:46:55 +00:00
|
|
|
.PHONY: test
|
2024-04-13 07:37:32 +00:00
|
|
|
test: protogen
|
2023-11-20 20:21:17 +00:00
|
|
|
@echo "Testing sentencetransformers..."
|
|
|
|
bash test.sh
|
2023-11-30 16:46:55 +00:00
|
|
|
@echo "sentencetransformers tested."
|
2024-04-13 07:37:32 +00:00
|
|
|
|
|
|
|
.PHONY: protogen
|
|
|
|
protogen: backend_pb2_grpc.py backend_pb2.py
|
|
|
|
|
|
|
|
.PHONY: protogen-clean
|
|
|
|
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
|