mirror of
https://github.com/jasonppy/VoiceCraft.git
synced 2025-12-16 20:07:43 +01:00
hf model
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user