Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,6 +6,12 @@ import os
|
|
| 6 |
from io import BytesIO
|
| 7 |
from typing import Generator
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
|
|
|
|
| 6 |
from io import BytesIO
|
| 7 |
from typing import Generator
|
| 8 |
|
| 9 |
+
import torch
|
| 10 |
+
from torch.serialization import add_safe_globals
|
| 11 |
+
from TTS.tts.configs.xtts_config import XttsConfig
|
| 12 |
+
|
| 13 |
+
# Allow this class to be unpickled (safe if you're sure the model is trusted)
|
| 14 |
+
add_safe_globals([XttsConfig])
|
| 15 |
|
| 16 |
|
| 17 |
|