mirror of https://github.com/coqui-ai/TTS.git
Fix fairseq (#11)
* fix fairseq mode * Added line to fix fairseq model issue and made code cleaner. --------- Co-authored-by: akgupta1337 <akgupta1337@gmail.com>
This commit is contained in:
parent
2e8f47a33d
commit
d80f7f4eba
|
@ -260,8 +260,7 @@ class ModelManager(object):
|
||||||
def _set_model_item(self, model_name):
|
def _set_model_item(self, model_name):
|
||||||
# fetch model info from the dict
|
# fetch model info from the dict
|
||||||
if "fairseq" in model_name:
|
if "fairseq" in model_name:
|
||||||
model_type = "tts_models"
|
model_type, lang, dataset, model = model_name.split("/")
|
||||||
lang = model_name.split("/")[1]
|
|
||||||
model_item = {
|
model_item = {
|
||||||
"model_type": "tts_models",
|
"model_type": "tts_models",
|
||||||
"license": "CC BY-NC 4.0",
|
"license": "CC BY-NC 4.0",
|
||||||
|
|
Loading…
Reference in New Issue