Skip to content

Commit

Permalink
Fix fairseq (#11)
Browse files Browse the repository at this point in the history
* fix fairseq mode

* Added line to fix fairseq model issue and made code cleaner.

---------

Co-authored-by: akgupta1337 <[email protected]>
  • Loading branch information
eginhard and akgupta1337 authored Mar 9, 2024
1 parent 2e8f47a commit d80f7f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d80f7f4

Please sign in to comment.