Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
lpscr committed Oct 21, 2024
1 parent 5d02a54 commit 99eb50d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ def __init__(self, model_type="F5-TTS", ckpt_file="", vocab_file="", ode_method=
self.load_ema_model(model_type, ckpt_file, vocab_file, ode_method, use_ema)

def load_vecoder_model(self, local_path):
if local_path is not None:load_vocoder_from_local=True
else:load_vocoder_from_local=False
self.vocos = load_vocoder(load_vocoder_from_local,local_path,self.device)
self.vocos = load_vocoder(local_path is not None,local_path,self.device)

def load_ema_model(self, model_type, ckpt_file, vocab_file, ode_method, use_ema):

Expand Down

0 comments on commit 99eb50d

Please sign in to comment.