Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
takana-v committed May 14, 2022
1 parent e25470b commit 8efcc03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voicevox_engine/synthesis_engine/core_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def __init__(
raise Exception(self.core.last_error_message().decode("utf-8"))
finally:
os.chdir(cwd)

def _lazy_init(self, speaker_id: int):
if self.exist_load_model and self.exist_load_model:
if not self.is_model_loaded(speaker_id):
Expand Down Expand Up @@ -509,12 +509,12 @@ def finalize(self) -> None:
self.core.finalize()
return
raise NameError

def load_model(self, speaker_id: int) -> bool:
if self.exist_load_model:
return self.core.load_model(c_int(speaker_id))
raise NameError

def is_model_loaded(self, speaker_id: int) -> bool:
if self.exist_is_model_loaded:
return self.core.is_model_loaded(c_int(speaker_id))
Expand Down

0 comments on commit 8efcc03

Please sign in to comment.