fix configs error (#2439)

* fix configs error

* fix configs error

---------

Co-authored-by: wangzeyuan <wangzeyuan@agora.io>
Co-authored-by: wangzeyuan <wangzeyuan@shengwang.cn>
This commit is contained in:
wzy3650
2025-06-09 11:25:55 +08:00
committed by GitHub
parent 74e79ae6d6
commit d6b78c927a
3 changed files with 13 additions and 7 deletions

View File

@@ -127,7 +127,7 @@ def get_sovits_version_from_path_fast(sovits_path):
def load_sovits_new(sovits_path):
f = open(sovits_path, "rb")
meta = f.read(2)
if meta != "PK":
if meta != b"PK":
data = b"PK" + f.read()
bio = BytesIO()
bio.write(data)