* README
This commit is contained in:
XXXXRT666
2024-08-07 14:54:49 +08:00
committed by GitHub
parent 21f05ee471
commit e685299077
19 changed files with 251 additions and 56 deletions

View File

@@ -87,12 +87,9 @@ from module.mel_processing import spectrogram_torch
from tools.my_utils import load_audio
from tools.i18n.i18n import I18nAuto, scan_language_list
language=os.environ.get("language","auto")
language=os.environ.get("language","Auto")
language=sys.argv[-1] if sys.argv[-1] in scan_language_list() else language
if language != 'auto':
i18n = I18nAuto(language=language)
else:
i18n = I18nAuto()
i18n = I18nAuto(language=language)
# os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1' # 确保直接启动推理UI时也能够设置。