Skip to content

Commit

Permalink
Merge pull request #750 from IAHispano/formatter/main
Browse files Browse the repository at this point in the history
chore(format): run black on main
  • Loading branch information
blaisewf authored Sep 28, 2024
2 parents 65a5ed6 + a177db4 commit eeea1be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tabs/tts/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@ def save_drop_custom_embedder(dropbox):
)
return None


def get_speakers_id(model):
if model:
model_data = torch.load(model, map_location="cpu")
speakers_id = model_data.get("speakers_id", 0)
return list(range(speakers_id))


# TTS tab
def tts_tab():
default_weight = random.choice(names) if names else ""
Expand Down

0 comments on commit eeea1be

Please sign in to comment.