optimize: 优化代码结构 (#66)

* update

* 纠正了多余的内容

* update

* Change the location of the comments (or revert) to improve readability.

* revert

* Update extract_locale.py

* Update i18n.py

* fix HK & SG

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
This commit is contained in:
唐澤 克幸
2023-04-16 15:29:01 +09:00
committed by GitHub
parent eebbacba8c
commit 6fb458a754
18 changed files with 225 additions and 30 deletions

View File

@@ -16,7 +16,7 @@ os.makedirs(os.path.join(now_dir, "weights"), exist_ok=True)
os.environ["TEMP"] = tmp
warnings.filterwarnings("ignore")
torch.manual_seed(114514)
from webui_locale import I18nAuto
from i18n import I18nAuto
i18n = I18nAuto()
# 判断是否有能用来训练和加速推理的N卡