From af0ac59e2b14798495207da9d861c603c6d049a2 Mon Sep 17 00:00:00 2001 From: ShenYuhan Date: Tue, 18 Feb 2020 23:59:15 +0800 Subject: [PATCH] Add Bert Service statistic for hub serving (#362) * add bs stat * fix ci --- paddlehub/commands/serving.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddlehub/commands/serving.py b/paddlehub/commands/serving.py index 44d19326..e73cbf65 100644 --- a/paddlehub/commands/serving.py +++ b/paddlehub/commands/serving.py @@ -172,6 +172,9 @@ class ServingCommand(BaseCommand): from paddle_gpu_serving.run import BertServer bs = BertServer(with_gpu=args.use_gpu) bs.with_model(model_name=args.modules[0]) + CacheUpdater( + "hub_bert_service", module=args.modules[0], + version="0.0.0").start() bs.run(gpu_index=args.gpu, port=int(args.port)) @staticmethod -- GitLab