diff --git a/src/server/package/pyproject.toml b/src/server/package/pyproject.toml index 02854288..970f8ba1 100644 --- a/src/server/package/pyproject.toml +++ b/src/server/package/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ai-edge-model-explorer" -version = "0.1.11" +version = "0.1.12" authors = [ { name="Google LLC", email="opensource@google.com" }, ] diff --git a/src/server/package/src/model_explorer/server.py b/src/server/package/src/model_explorer/server.py index c5256e32..81993f61 100644 --- a/src/server/package/src/model_explorer/server.py +++ b/src/server/package/src/model_explorer/server.py @@ -128,7 +128,6 @@ def _check_new_version(print_msg=True): if parse(installed_version) < parse(repo_version): check_new_version_resp['version'] = repo_version if print_msg: - _print_yellow( f'\n{PACKAGE_NAME} version {repo_version} is available, and you' f' are using version {installed_version}.' @@ -140,10 +139,12 @@ def _check_new_version(print_msg=True): github_release = _get_release_from_github(repo_version) releaseUrl = github_release['releaseUrl'] check_new_version_resp['releaseUrl'] = releaseUrl - _print_yellow(f'\nRelease notes: {releaseUrl}') check_new_version_resp['desktopAppUrl'] = github_release[ 'desktopAppUrl' ] + + if print_msg: + _print_yellow(f'\nRelease notes: {releaseUrl}') except: pass finally: