* fix #73: 伴奏人声分离时报错:FileNotFoundError * Apply Code Formatter Change --------- Co-authored-by: fumiama <fumiama@users.noreply.github.com>
This commit is contained in:
parent
6fb458a754
commit
13da7b3f96
@ -7,7 +7,9 @@ standard_file = "zh_CN.json"
|
||||
|
||||
# Find all JSON files in the directory
|
||||
dir_path = "./"
|
||||
languages = [f for f in os.listdir(dir_path) if f.endswith(".json") and f != standard_file]
|
||||
languages = [
|
||||
f for f in os.listdir(dir_path) if f.endswith(".json") and f != standard_file
|
||||
]
|
||||
|
||||
# Load the standard file
|
||||
with open(standard_file, "r", encoding="utf-8") as f:
|
||||
|
@ -4,7 +4,7 @@ from tqdm import tqdm
|
||||
import json
|
||||
|
||||
|
||||
def load_data(file_name: str = "./uvr5_pack/data.json") -> dict:
|
||||
def load_data(file_name: str = "./uvr5_pack/name_params.json") -> dict:
|
||||
with open(file_name, "r") as f:
|
||||
data = json.load(f)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user