fix: json format (#84)

* Update extract_locale.py

* Apply Code Formatter Change

* Update locale_diff.py

* Apply Code Formatter Change

---------

Co-authored-by: fumiama <fumiama@users.noreply.github.com>
This commit is contained in:
源文雨
2023-04-17 20:49:29 +08:00
committed by GitHub
parent 5ab6713bb3
commit b0f8a4c7d1
6 changed files with 19 additions and 5 deletions

View File

@@ -139,8 +139,17 @@ def vc_single(
if hubert_model == None:
load_hubert()
if_f0 = cpt.get("f0", 1)
file_index = file_index.strip(" ").strip('"').strip("\n").strip('"').strip(" ").replace("trained","added")#防止小白写错,自动帮他替换掉
file_big_npy = file_big_npy.strip(" ").strip('"').strip("\n").strip('"').strip(" ")
file_index = (
file_index.strip(" ")
.strip('"')
.strip("\n")
.strip('"')
.strip(" ")
.replace("trained", "added")
) # 防止小白写错,自动帮他替换掉
file_big_npy = (
file_big_npy.strip(" ").strip('"').strip("\n").strip('"').strip(" ")
)
audio_opt = vc.pipeline(
hubert_model,
net_g,