Skip to content

Commit

Permalink
loading custom model
Browse files Browse the repository at this point in the history
  • Loading branch information
traderpedroso committed Aug 28, 2024
1 parent cc1fdeb commit 3e5f875
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xphonebr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
class Phonemizer:
def __init__(self, autoreg=False, normalizer=False, custom_model=None):
self.model_path = self.download_model(autoreg)
# load custom model
if custom_model:
self.phones = ph.from_checkpoint(custom_model, device=device)
else:
Expand Down

0 comments on commit 3e5f875

Please sign in to comment.