初始化为数字

This commit is contained in:
Downupanddownup 2024-06-06 18:14:38 +08:00
parent 56d6ae6b3b
commit 5ffb193bcd
2 changed files with 3 additions and 2 deletions

View File

@ -398,4 +398,5 @@ arpa = {
symbols = [pad] + c + v + ja_symbols + pu_symbols + list(arpa)
symbols = sorted(set(symbols))
if __name__ == "__main__":
print(symbols)
print(len(symbols))

View File

@ -108,9 +108,9 @@ def init_first():
text_sample_dir_default = common.check_path_existence_and_return(
os.path.join(base_dir_default, params.list_to_convert_reference_audio_dir))
slider_subsection_num_default = empty_default(rw_param.read(rw_param.subsection_num), 5)
slider_subsection_num_default = int(empty_default(rw_param.read(rw_param.subsection_num), 10))
slider_sample_num_default = empty_default(rw_param.read(rw_param.sample_num), 4)
slider_sample_num_default = (empty_default(rw_param.read(rw_param.sample_num), 4))
def init_second():