1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-09 04:29:50 +08:00

fix: Add weight whitelist support for torch 2.6 (#110)

This commit is contained in:
Yongkun Li
2025-02-07 15:26:01 +08:00
committed by GitHub
parent e1aeb16630
commit ef9c8eb656
7 changed files with 45 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
import json
import locale
import os
from configs import singleton_variable
from configs import Singleton
def load_language_list(language):
@@ -10,8 +10,7 @@ def load_language_list(language):
return language_list
@singleton_variable
class I18nAuto:
class I18nAuto(metaclass=Singleton):
def __init__(self, language=None):
if language in ["Auto", None]:
language = locale.getdefaultlocale(