From 5c11fd761e4763ac50afd838d59d545781c1da38 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 12 八月 2024 11:04:13 +0800
Subject: [PATCH] version check
---
funasr/version.txt | 2 +-
funasr/utils/version_checker.py | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/funasr/utils/version_checker.py b/funasr/utils/version_checker.py
index e7008bd..d016ed0 100644
--- a/funasr/utils/version_checker.py
+++ b/funasr/utils/version_checker.py
@@ -15,13 +15,15 @@
def check_for_update(disable=False):
+ current_version = version.parse(__version__)
+ print(f"funasr version: {current_version}.")
if disable:
return
- current_version = version.parse(__version__)
+
pypi_version = get_pypi_version("funasr")
if current_version < pypi_version:
- print(f"New version available: {pypi_version}. Your current version is {current_version}.")
+ print(f"New version is available: {pypi_version}.")
print('Please use the command "pip install -U funasr" to upgrade.')
else:
print(f"You are using the latest version of funasr-{current_version}")
diff --git a/funasr/version.txt b/funasr/version.txt
index 1b87bcd..314c3d7 100644
--- a/funasr/version.txt
+++ b/funasr/version.txt
@@ -1 +1 @@
-1.1.4
\ No newline at end of file
+1.1.5
\ No newline at end of file
--
Gitblit v1.9.1