游雁
2024-07-22 f9c13d7f4b67b8632ad22d319153cd20f65e051d
bugfix
2个文件已修改
6 ■■■■■ 已修改文件
funasr/auto/auto_model.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/utils/version_checker.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/auto/auto_model.py
@@ -114,7 +114,7 @@
        try:
            from funasr.utils.version_checker import check_for_update
            check_for_update()
            check_for_update(disable=kwargs.get("disable_update", False))
        except:
            pass
funasr/utils/version_checker.py
@@ -14,7 +14,9 @@
        raise Exception("Failed to retrieve version information from PyPI.")
def check_for_update():
def check_for_update(disable=False):
    if disable:
        return
    current_version = version.parse(__version__)
    pypi_version = get_pypi_version("funasr")