Spaces:
Running
Running
Update modules/speaker.py
Browse files- modules/speaker.py +0 -2
modules/speaker.py
CHANGED
|
@@ -11,8 +11,6 @@ from modules.utils.SeedContext import SeedContext
|
|
| 11 |
|
| 12 |
from torch.serialization import add_safe_globals
|
| 13 |
|
| 14 |
-
add_safe_globals({'modules.speaker.Speaker': Speaker})
|
| 15 |
-
|
| 16 |
with safe_globals({'modules.speaker.Speaker': Speaker}):
|
| 17 |
speaker = torch.load(file_like, map_location="cpu", weights_only=False)
|
| 18 |
|
|
|
|
| 11 |
|
| 12 |
from torch.serialization import add_safe_globals
|
| 13 |
|
|
|
|
|
|
|
| 14 |
with safe_globals({'modules.speaker.Speaker': Speaker}):
|
| 15 |
speaker = torch.load(file_like, map_location="cpu", weights_only=False)
|
| 16 |
|