This commit is contained in:
jason-on-salt-a40
2024-04-08 15:08:59 -07:00
parent 0f79429b0d
commit d363743fbd
2 changed files with 4 additions and 3 deletions

View File

@@ -1414,9 +1414,9 @@ class VoiceCraft(nn.Module):
return res, flatten_gen[0].unsqueeze(0)
class VoiceCraftHF(VoiceCraft, PyTorchModelHubMixin,
repo_url="https://github.com/jasonppy/VoiceCraft",
tags=["Text-to-Speech", "VoiceCraft"]):
class VoiceCraftHF(VoiceCraft, PyTorchModelHubMixin):
repo_url="https://github.com/jasonppy/VoiceCraft",
tags=["Text-to-Speech", "VoiceCraft"]
def __init__(self, config: dict):
args = Namespace(**config)
super().__init__(args)