Skip to content

Commit

Permalink
整理: generate_app() と独立してユーザー辞書を初期化 (#1256)
Browse files Browse the repository at this point in the history
refactor: app と独立してユーザー辞書を初期化
  • Loading branch information
tarepan committed May 22, 2024
1 parent d9dd729 commit 3d8b1e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions voicevox_engine/app/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ def generate_app(

engine_manifest_data = load_manifest(engine_root() / "engine_manifest.json")

user_dict.update_dict()

app = FastAPI(
title=engine_manifest_data.name,
description=f"{engine_manifest_data.brand_name} の音声合成エンジンです。",
Expand Down
1 change: 1 addition & 0 deletions voicevox_engine/user_dict/user_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def __init__(
self._default_dict_path = default_dict_path
self._user_dict_path = user_dict_path
self._compiled_dict_path = compiled_dict_path
self.update_dict()

def update_dict(self) -> None:
"""辞書を更新する。"""
Expand Down

0 comments on commit 3d8b1e4

Please sign in to comment.