jasonppy / VoiceCraft

Zero-Shot Speech Editing and Text-to-Speech in the Wild
Other
7.65k stars 748 forks source link

Gradio app broken locally. #118

Open Ph0rk0z opened 7 months ago

Ph0rk0z commented 7 months ago

Because of https://github.com/jasonppy/VoiceCraft/commit/e550f614096a9ba098d2127a4e441ca497ba256f

the class changed to

class VoiceCraft(nn.Module):
class VoiceCraft(
    def __init__(self, args):
        nn.Module,
        PyTorchModelHubMixin,
        library_name="voicecraft",
        repo_url="https://github.com/jasonppy/VoiceCraft",
        tags=["text-to-speech"],
    ):

Now it hangs on import and says init doesn't take positional arguments.

The fix is to delete all the weird hub stuff.

class VoiceCraft(nn.Module):
class VoiceCraft(
    def __init__(self, args):
        nn.Module,
        PyTorchModelHubMixin,
    ):

Anyone else having this issue? Its cool we have new models because I was not looking forward to d/l the old ones again via huggingface.