From bafb6b32d0ba7145514f48667267455cf0f9a548 Mon Sep 17 00:00:00 2001 From: TeslaZhao Date: Tue, 1 Dec 2020 14:44:11 +0800 Subject: [PATCH] fix bugs of bert examples --- python/examples/bert/bert_client.py | 2 +- python/examples/imdb/benchmark.py | 2 +- python/examples/imdb/test_client.py | 2 +- python/examples/imdb/text_classify_service.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/examples/bert/bert_client.py b/python/examples/bert/bert_client.py index eaa22d39..b378f9f7 100644 --- a/python/examples/bert/bert_client.py +++ b/python/examples/bert/bert_client.py @@ -23,7 +23,7 @@ args = benchmark_args() reader = ChineseBertReader({"max_seq_len": 128}) fetch = ["pooled_output"] -endpoint_list = ['127.0.0.1:8861'] +endpoint_list = ['127.0.0.1:9292'] client = Client() client.load_client_config(args.model) client.connect(endpoint_list) diff --git a/python/examples/imdb/benchmark.py b/python/examples/imdb/benchmark.py index d8047311..18584f88 100644 --- a/python/examples/imdb/benchmark.py +++ b/python/examples/imdb/benchmark.py @@ -18,7 +18,7 @@ import sys import time import requests import numpy as np -from paddle_serving_app.reader import IMDBDataset +from paddle_serving_app.reader.imdb_reader import IMDBDataset from paddle_serving_client import Client from paddle_serving_client.utils import MultiThreadRunner from paddle_serving_client.utils import MultiThreadRunner, benchmark_args, show_latency diff --git a/python/examples/imdb/test_client.py b/python/examples/imdb/test_client.py index c057fdb6..2aeee01a 100644 --- a/python/examples/imdb/test_client.py +++ b/python/examples/imdb/test_client.py @@ -13,7 +13,7 @@ # limitations under the License. # pylint: disable=doc-string-missing from paddle_serving_client import Client -from paddle_serving_app.reader import IMDBDataset +from paddle_serving_app.reader.imdb_reader import IMDBDataset import sys import numpy as np diff --git a/python/examples/imdb/text_classify_service.py b/python/examples/imdb/text_classify_service.py index 7b1f200e..1d292194 100755 --- a/python/examples/imdb/text_classify_service.py +++ b/python/examples/imdb/text_classify_service.py @@ -14,7 +14,7 @@ # pylint: disable=doc-string-missing from paddle_serving_server.web_service import WebService -from paddle_serving_app.reader import IMDBDataset +from paddle_serving_app.reader.imdb_reader import IMDBDataset import sys import numpy as np -- GitLab