diff --git a/paddlehub/commands/serving.py b/paddlehub/commands/serving.py index 44d19326e8f57aa5a36c6f18e7f52acbdc33d441..e73cbf6515b1666a09094d15d9dd912ecdb7881c 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