forked from coqui-ai/TTS
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use original instead of scarf urls
These allowed Coqui to get download stats, which we don't need anymore
- Loading branch information
Showing
8 changed files
with
130 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,7 +230,7 @@ def _download_hf_model(self, model_item: Dict, output_path: str): | |
self._download_zip_file(model_item["hf_url"], output_path, self.progress_bar) | ||
|
||
def download_fairseq_model(self, model_name, output_path): | ||
URI_PREFIX = "https://coqui.gateway.scarf.sh/fairseq/" | ||
URI_PREFIX = "https://dl.fbaipublicfiles.com/mms/tts/" | ||
_, lang, _, _ = model_name.split("/") | ||
model_download_uri = os.path.join(URI_PREFIX, f"{lang}.tar.gz") | ||
self._download_tar_file(model_download_uri, output_path, self.progress_bar) | ||
|
@@ -243,9 +243,9 @@ def set_model_url(model_item: Dict): | |
elif "hf_url" in model_item: | ||
model_item["model_url"] = model_item["hf_url"] | ||
elif "fairseq" in model_item["model_name"]: | ||
model_item["model_url"] = "https://coqui.gateway.scarf.sh/fairseq/" | ||
model_item["model_url"] = "https://dl.fbaipublicfiles.com/mms/tts/" | ||
elif "xtts" in model_item["model_name"]: | ||
model_item["model_url"] = "https://coqui.gateway.scarf.sh/xtts/" | ||
model_item["model_url"] = "https://huggingface.co/coqui/" | ||
return model_item | ||
|
||
def _set_model_item(self, model_name): | ||
|
@@ -278,11 +278,11 @@ def _set_model_item(self, model_name): | |
"contact": "[email protected]", | ||
"tos_required": True, | ||
"hf_url": [ | ||
f"https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/{model_version}/model.pth", | ||
f"https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/{model_version}/config.json", | ||
f"https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/{model_version}/vocab.json", | ||
f"https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/{model_version}/hash.md5", | ||
f"https://coqui.gateway.scarf.sh/hf-coqui/XTTS-v2/{model_version}/speakers_xtts.pth", | ||
f"https://huggingface.co/coqui/XTTS-v2/resolve/{model_version}/model.pth", | ||
f"https://huggingface.co/coqui/XTTS-v2/resolve/{model_version}/config.json", | ||
f"https://huggingface.co/coqui/XTTS-v2/resolve/{model_version}/vocab.json", | ||
f"https://huggingface.co/coqui/XTTS-v2/resolve/{model_version}/hash.md5", | ||
f"https://huggingface.co/coqui/XTTS-v2/resolve/{model_version}/speakers_xtts.pth", | ||
], | ||
} | ||
else: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters