From 6686247b677f33f84c758c147dca1423ed1cc6e0 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 22 Oct 2020 20:39:46 +0800 Subject: [PATCH] add README for java client --- java/README.md | 24 ++++++++++++++++++++++++ java/README_CN.md | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 java/README.md create mode 100644 java/README_CN.md diff --git a/java/README.md b/java/README.md new file mode 100644 index 00000000..d996381d --- /dev/null +++ b/java/README.md @@ -0,0 +1,24 @@ +## Java Demo + +### Install package +``` +mvn compile +mvn install +cd examples +mvn compile +mvn install +``` + +### Start Server + +take the fit_a_line demo as example + +``` + python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9393 --use_multilang #CPU +python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9393 --use_multilang #GPU +``` + +### Client Predict +``` +java -cp paddle-serving-sdk-java-examples-0.0.1-jar-with-dependencies.jar PaddleServingClientExample fit_a_line +``` diff --git a/java/README_CN.md b/java/README_CN.md new file mode 100644 index 00000000..ec5bdc77 --- /dev/null +++ b/java/README_CN.md @@ -0,0 +1,24 @@ +## Java 示例 + +### 安装客户端依赖 +``` +mvn compile +mvn install +cd examples +mvn compile +mvn install +``` + +### 启动服务端 + +以fit_a_line模型为例 + +``` + python -m paddle_serving_server.serve --model uci_housing_model --thread 10 --port 9393 --use_multilang #CPU +python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9393 --use_multilang #GPU +``` + +### 客户端预测 +``` +java -cp paddle-serving-sdk-java-examples-0.0.1-jar-with-dependencies.jar PaddleServingClientExample fit_a_line +``` -- GitLab