From a177db4a472c655822fcfe8cdb0e588ae146712c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Sep 2024 19:29:42 +0000 Subject: [PATCH] chore(format): run black on main --- tabs/tts/tts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabs/tts/tts.py b/tabs/tts/tts.py index 86df8343..c7eb2c51 100644 --- a/tabs/tts/tts.py +++ b/tabs/tts/tts.py @@ -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 ""