Spaces:
Running
Running
Update modules/speaker.py
Browse files10 unmodified lines111213141516171810 unmodified linesfrom torch.serialization import add_safe_globalsadd_safe_globals({'modules.speaker.Speaker': Speaker})with safe_globals({'modules.speaker.Speaker': Speaker}):speaker = torch.load(file_like, map_location="cpu", weights_only=False)10 unmodified lines11121314151610 unmodified linesfrom torch.serialization import add_safe_globalswith safe_globals({'modules.speaker.Speaker': Speaker}):speaker = torch.load(file_like, map_location="cpu", weights_only=False)
modules/speaker.py-2