diff --git a/paddlehub/__init__.py b/paddlehub/__init__.py index 29445851ca2cb1334c9fe6ce278a013123ce69ec..5354d5ad0bf61d379cc3512c1fd1f19afd0c2280 100644 --- a/paddlehub/__init__.py +++ b/paddlehub/__init__.py @@ -17,7 +17,7 @@ import sys from easydict import EasyDict -__version__ = '2.0.0a0' +__version__ = '2.0.0-alpha0' from paddlehub.config import config from paddlehub.utils import log, parser, utils diff --git a/paddlehub/server/server_source.py b/paddlehub/server/server_source.py index e539194d5e26e12e4aac1a2b222c35c9f0975c3b..ad6c27d0725d4661ea63878b23c4c12d1d817ecf 100644 --- a/paddlehub/server/server_source.py +++ b/paddlehub/server/server_source.py @@ -71,8 +71,8 @@ class ServerSource(object): # Delay module loading to improve command line speed import paddle - params['hub_version'] = paddlehub.__version__ - params['paddle_version'] = paddle.__version__ + params['hub_version'] = paddlehub.__version__.split('-')[0] + params['paddle_version'] = paddle.__version__.split('-')[0] result = self.request(path='search', params=params) if result['status'] == 0 and len(result['data']) > 0: