From d80f7f4ebabc9984fbd75880f96bc48114a59471 Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Sat, 9 Mar 2024 16:43:42 +0100 Subject: [PATCH] Fix fairseq (#11) * fix fairseq mode * Added line to fix fairseq model issue and made code cleaner. --------- Co-authored-by: akgupta1337 --- TTS/utils/manage.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TTS/utils/manage.py b/TTS/utils/manage.py index 32f1779c64..ca16183d37 100644 --- a/TTS/utils/manage.py +++ b/TTS/utils/manage.py @@ -260,8 +260,7 @@ def set_model_url(model_item: Dict): def _set_model_item(self, model_name): # fetch model info from the dict if "fairseq" in model_name: - model_type = "tts_models" - lang = model_name.split("/")[1] + model_type, lang, dataset, model = model_name.split("/") model_item = { "model_type": "tts_models", "license": "CC BY-NC 4.0",