Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
from TTS.tts.models.xtts import XttsArgs
|
5 |
-
|
6 |
from TTS.api import TTS
|
7 |
|
8 |
|
@@ -11,7 +11,7 @@ os.environ["COQUI_TOS_AGREED"] = "1"
|
|
11 |
|
12 |
|
13 |
torch.serialization.safe_globals([XttsArgs])
|
14 |
-
torch.serialization.
|
15 |
|
16 |
# ✅ Force full checkpoint loading
|
17 |
def safe_load_checkpoint(model_path):
|
|
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
from TTS.tts.models.xtts import XttsArgs
|
5 |
+
|
6 |
from TTS.api import TTS
|
7 |
|
8 |
|
|
|
11 |
|
12 |
|
13 |
torch.serialization.safe_globals([XttsArgs])
|
14 |
+
torch.serialization.add_safe_globals([XttsConfig])
|
15 |
|
16 |
# ✅ Force full checkpoint loading
|
17 |
def safe_load_checkpoint(model_path):
|